Lines Matching refs:intern

99 	zend_user_iterator     intern;  member
347 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_free_storage() local
350 zend_object_std_dtor(&intern->std); in spl_dllist_object_free_storage()
352 while (intern->llist->count > 0) { in spl_dllist_object_free_storage()
353 spl_ptr_llist_pop(intern->llist, &tmp); in spl_dllist_object_free_storage()
357 spl_ptr_llist_destroy(intern->llist); in spl_dllist_object_free_storage()
358 SPL_LLIST_CHECK_DELREF(intern->traverse_pointer); in spl_dllist_object_free_storage()
364 spl_dllist_object *intern; in spl_dllist_object_new_ex() local
368 intern = zend_object_alloc(sizeof(spl_dllist_object), parent); in spl_dllist_object_new_ex()
370 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex()
371 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
373 intern->flags = 0; in spl_dllist_object_new_ex()
374 intern->traverse_position = 0; in spl_dllist_object_new_ex()
378 intern->ce_get_iterator = other->ce_get_iterator; in spl_dllist_object_new_ex()
381 intern->llist = (spl_ptr_llist *)spl_ptr_llist_init(other->llist->ctor, other->llist->dtor); in spl_dllist_object_new_ex()
382 spl_ptr_llist_copy(other->llist, intern->llist); in spl_dllist_object_new_ex()
383 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
384 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
386 intern->llist = other->llist; in spl_dllist_object_new_ex()
387 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
388 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
391 intern->flags = other->flags; in spl_dllist_object_new_ex()
393intern->llist = (spl_ptr_llist *)spl_ptr_llist_init(spl_ptr_llist_zval_ctor, spl_ptr_llist_zval_dt… in spl_dllist_object_new_ex()
394 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
395 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
400 intern->flags |= (SPL_DLLIST_IT_FIX | SPL_DLLIST_IT_LIFO); in spl_dllist_object_new_ex()
401 intern->std.handlers = &spl_handler_SplDoublyLinkedList; in spl_dllist_object_new_ex()
403 intern->flags |= SPL_DLLIST_IT_FIX; in spl_dllist_object_new_ex()
404 intern->std.handlers = &spl_handler_SplDoublyLinkedList; in spl_dllist_object_new_ex()
408 intern->std.handlers = &spl_handler_SplDoublyLinkedList; in spl_dllist_object_new_ex()
419intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
420 if (intern->fptr_offset_get->common.scope == parent) { in spl_dllist_object_new_ex()
421 intern->fptr_offset_get = NULL; in spl_dllist_object_new_ex()
423intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
424 if (intern->fptr_offset_set->common.scope == parent) { in spl_dllist_object_new_ex()
425 intern->fptr_offset_set = NULL; in spl_dllist_object_new_ex()
427intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
428 if (intern->fptr_offset_has->common.scope == parent) { in spl_dllist_object_new_ex()
429 intern->fptr_offset_has = NULL; in spl_dllist_object_new_ex()
431intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
432 if (intern->fptr_offset_del->common.scope == parent) { in spl_dllist_object_new_ex()
433 intern->fptr_offset_del = NULL; in spl_dllist_object_new_ex()
435intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex()
436 if (intern->fptr_count->common.scope == parent) { in spl_dllist_object_new_ex()
437 intern->fptr_count = NULL; in spl_dllist_object_new_ex()
441 return &intern->std; in spl_dllist_object_new_ex()
463 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_count_elements() local
465 if (intern->fptr_count) { in spl_dllist_object_count_elements()
467 zend_call_method_with_0_params(object, intern->std.ce, &intern->fptr_count, "count", &rv); in spl_dllist_object_count_elements()
477 *count = spl_ptr_llist_count(intern->llist); in spl_dllist_object_count_elements()
484 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_debug_info() local
485 spl_ptr_llist_element *current = intern->llist->head, *next; in spl_dllist_object_get_debug_info()
491 if (!intern->std.properties) { in spl_dllist_object_get_debug_info()
492 rebuild_object_properties(&intern->std); in spl_dllist_object_get_debug_info()
496 zend_hash_copy(debug_info, intern->std.properties, (copy_ctor_func_t) zval_add_ref); in spl_dllist_object_get_debug_info()
499 ZVAL_LONG(&tmp, intern->flags); in spl_dllist_object_get_debug_info()
527 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_gc() local
529 spl_ptr_llist_element *current = intern->llist->head; in spl_dllist_object_get_gc()
545 spl_dllist_object *intern; in PHP_METHOD() local
551 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
552 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
560 spl_dllist_object *intern; in PHP_METHOD() local
566 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
567 spl_ptr_llist_unshift(intern->llist, value); in PHP_METHOD()
574 spl_dllist_object *intern; in PHP_METHOD() local
580 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
581 spl_ptr_llist_pop(intern->llist, return_value); in PHP_METHOD()
593 spl_dllist_object *intern; in PHP_METHOD() local
599 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
600 spl_ptr_llist_shift(intern->llist, return_value); in PHP_METHOD()
613 spl_dllist_object *intern; in PHP_METHOD() local
619 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
620 value = spl_ptr_llist_last(intern->llist); in PHP_METHOD()
635 spl_dllist_object *intern; in PHP_METHOD() local
641 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
642 value = spl_ptr_llist_first(intern->llist); in PHP_METHOD()
657 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
663 count = spl_ptr_llist_count(intern->llist); in PHP_METHOD()
686 spl_dllist_object *intern; in PHP_METHOD() local
692 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
694 if ((intern->flags & SPL_DLLIST_IT_FIX) in PHP_METHOD()
695 && (intern->flags & SPL_DLLIST_IT_LIFO) != (value & SPL_DLLIST_IT_LIFO)) { in PHP_METHOD()
700 intern->flags = (value & SPL_DLLIST_IT_MASK) | (intern->flags & SPL_DLLIST_IT_FIX); in PHP_METHOD()
702 RETURN_LONG(intern->flags); in PHP_METHOD()
709 spl_dllist_object *intern; in PHP_METHOD() local
715 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
717 RETURN_LONG(intern->flags); in PHP_METHOD()
724 spl_dllist_object *intern; in PHP_METHOD() local
731 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
733 RETURN_BOOL(index >= 0 && index < intern->llist->count); in PHP_METHOD()
740 spl_dllist_object *intern; in PHP_METHOD() local
747 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
749 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
754 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
769 spl_dllist_object *intern; in PHP_METHOD() local
775 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
779 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
784 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
789 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
793 if (intern->llist->dtor) { in PHP_METHOD()
794 intern->llist->dtor(element); in PHP_METHOD()
803 if (intern->llist->ctor) { in PHP_METHOD()
804 intern->llist->ctor(element); in PHP_METHOD()
818 spl_dllist_object *intern; in PHP_METHOD() local
826 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
827 llist = intern->llist; in PHP_METHOD()
829 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
834 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
862 if (intern->traverse_pointer == element) { in PHP_METHOD()
864 intern->traverse_pointer = NULL; in PHP_METHOD()
883 zval_ptr_dtor(&iterator->intern.it.data); in spl_dllist_it_dtor()
991 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
997 RETURN_LONG(intern->traverse_position); in PHP_METHOD()
1004 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1010 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
1017 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1023 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
1030 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1036 RETURN_BOOL(intern->traverse_pointer != NULL); in PHP_METHOD()
1043 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1049 …spl_dllist_it_helper_rewind(&intern->traverse_pointer, &intern->traverse_position, intern->llist, in PHP_METHOD()
1056 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1057 spl_ptr_llist_element *element = intern->traverse_pointer; in PHP_METHOD()
1074 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1076 spl_ptr_llist_element *current = intern->llist->head, *next; in PHP_METHOD()
1087 ZVAL_LONG(&flags, intern->flags); in PHP_METHOD()
1111 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1126 while (intern->llist->count > 0) { in PHP_METHOD()
1128 spl_ptr_llist_pop(intern->llist, &tmp); in PHP_METHOD()
1141 intern->flags = (int)Z_LVAL_P(flags); in PHP_METHOD()
1152 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1172 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1173 spl_ptr_llist_element *current = intern->llist->head; in PHP_METHOD()
1183 ZVAL_LONG(&tmp, intern->flags); in PHP_METHOD()
1187 array_init_size(&tmp, intern->llist->count); in PHP_METHOD()
1196 ZVAL_ARR(&tmp, zend_std_get_properties(&intern->std)); in PHP_METHOD()
1203 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1222 intern->flags = (int) Z_LVAL_P(flags_zv); in PHP_METHOD()
1225 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1228 object_properties_load(&intern->std, Z_ARRVAL_P(members_zv)); in PHP_METHOD()
1235 spl_dllist_object *intern; in PHP_METHOD() local
1243 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
1245 if (index < 0 || index > intern->llist->count) { in PHP_METHOD()
1251 if (index == intern->llist->count) { in PHP_METHOD()
1253 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
1259 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
1269 intern->llist->head = elem; in PHP_METHOD()
1275 intern->llist->count++; in PHP_METHOD()
1277 if (intern->llist->ctor) { in PHP_METHOD()
1278 intern->llist->ctor(elem); in PHP_METHOD()
1319 ZVAL_OBJ_COPY(&iterator->intern.it.data, Z_OBJ_P(object)); in spl_dllist_get_iterator()
1320 iterator->intern.it.funcs = &spl_dllist_it_funcs; in spl_dllist_get_iterator()
1321 iterator->intern.ce = ce; in spl_dllist_get_iterator()
1325 ZVAL_UNDEF(&iterator->intern.value); in spl_dllist_get_iterator()
1329 return &iterator->intern.it; in spl_dllist_get_iterator()