Lines Matching refs:intern

92 	zend_object_iterator   intern;  member
296 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_free_storage() local
299 zend_object_std_dtor(&intern->std); in spl_dllist_object_free_storage()
301 while (intern->llist->count > 0) { in spl_dllist_object_free_storage()
302 spl_ptr_llist_pop(intern->llist, &tmp); in spl_dllist_object_free_storage()
306 spl_ptr_llist_destroy(intern->llist); in spl_dllist_object_free_storage()
307 SPL_LLIST_CHECK_DELREF(intern->traverse_pointer); in spl_dllist_object_free_storage()
313 spl_dllist_object *intern; in spl_dllist_object_new_ex() local
317 intern = zend_object_alloc(sizeof(spl_dllist_object), parent); in spl_dllist_object_new_ex()
319 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex()
320 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
322 intern->flags = 0; in spl_dllist_object_new_ex()
323 intern->traverse_position = 0; in spl_dllist_object_new_ex()
327 intern->ce_get_iterator = other->ce_get_iterator; in spl_dllist_object_new_ex()
330 intern->llist = spl_ptr_llist_init(); in spl_dllist_object_new_ex()
331 spl_ptr_llist_copy(other->llist, intern->llist); in spl_dllist_object_new_ex()
332 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
333 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
335 intern->llist = other->llist; in spl_dllist_object_new_ex()
336 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
337 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
340 intern->flags = other->flags; in spl_dllist_object_new_ex()
342 intern->llist = spl_ptr_llist_init(); in spl_dllist_object_new_ex()
343 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
344 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
349 intern->flags |= (SPL_DLLIST_IT_FIX | SPL_DLLIST_IT_LIFO); in spl_dllist_object_new_ex()
350 intern->std.handlers = &spl_handler_SplDoublyLinkedList; in spl_dllist_object_new_ex()
352 intern->flags |= SPL_DLLIST_IT_FIX; in spl_dllist_object_new_ex()
353 intern->std.handlers = &spl_handler_SplDoublyLinkedList; in spl_dllist_object_new_ex()
357 intern->std.handlers = &spl_handler_SplDoublyLinkedList; in spl_dllist_object_new_ex()
368intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
369 if (intern->fptr_offset_get->common.scope == parent) { in spl_dllist_object_new_ex()
370 intern->fptr_offset_get = NULL; in spl_dllist_object_new_ex()
372intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
373 if (intern->fptr_offset_set->common.scope == parent) { in spl_dllist_object_new_ex()
374 intern->fptr_offset_set = NULL; in spl_dllist_object_new_ex()
376intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
377 if (intern->fptr_offset_has->common.scope == parent) { in spl_dllist_object_new_ex()
378 intern->fptr_offset_has = NULL; in spl_dllist_object_new_ex()
380intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
381 if (intern->fptr_offset_del->common.scope == parent) { in spl_dllist_object_new_ex()
382 intern->fptr_offset_del = NULL; in spl_dllist_object_new_ex()
384intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex()
385 if (intern->fptr_count->common.scope == parent) { in spl_dllist_object_new_ex()
386 intern->fptr_count = NULL; in spl_dllist_object_new_ex()
390 return &intern->std; in spl_dllist_object_new_ex()
412 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_count_elements() local
414 if (intern->fptr_count) { in spl_dllist_object_count_elements()
416 zend_call_method_with_0_params(object, intern->std.ce, &intern->fptr_count, "count", &rv); in spl_dllist_object_count_elements()
426 *count = spl_ptr_llist_count(intern->llist); in spl_dllist_object_count_elements()
433 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_debug_info() local
434 spl_ptr_llist_element *current = intern->llist->head, *next; in spl_dllist_object_get_debug_info()
440 if (!intern->std.properties) { in spl_dllist_object_get_debug_info()
441 rebuild_object_properties(&intern->std); in spl_dllist_object_get_debug_info()
445 zend_hash_copy(debug_info, intern->std.properties, (copy_ctor_func_t) zval_add_ref); in spl_dllist_object_get_debug_info()
448 ZVAL_LONG(&tmp, intern->flags); in spl_dllist_object_get_debug_info()
476 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_gc() local
478 spl_ptr_llist_element *current = intern->llist->head; in spl_dllist_object_get_gc()
494 spl_dllist_object *intern; in PHP_METHOD() local
500 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
501 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
509 spl_dllist_object *intern; in PHP_METHOD() local
515 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
516 spl_ptr_llist_unshift(intern->llist, value); in PHP_METHOD()
523 spl_dllist_object *intern; in PHP_METHOD() local
529 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
530 spl_ptr_llist_pop(intern->llist, return_value); in PHP_METHOD()
542 spl_dllist_object *intern; in PHP_METHOD() local
548 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
549 spl_ptr_llist_shift(intern->llist, return_value); in PHP_METHOD()
562 spl_dllist_object *intern; in PHP_METHOD() local
568 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
569 value = spl_ptr_llist_last(intern->llist); in PHP_METHOD()
584 spl_dllist_object *intern; in PHP_METHOD() local
590 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
591 value = spl_ptr_llist_first(intern->llist); in PHP_METHOD()
606 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
612 count = spl_ptr_llist_count(intern->llist); in PHP_METHOD()
635 spl_dllist_object *intern; in PHP_METHOD() local
641 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
643 if ((intern->flags & SPL_DLLIST_IT_FIX) in PHP_METHOD()
644 && (intern->flags & SPL_DLLIST_IT_LIFO) != (value & SPL_DLLIST_IT_LIFO)) { in PHP_METHOD()
649 intern->flags = (value & SPL_DLLIST_IT_MASK) | (intern->flags & SPL_DLLIST_IT_FIX); in PHP_METHOD()
651 RETURN_LONG(intern->flags); in PHP_METHOD()
658 spl_dllist_object *intern; in PHP_METHOD() local
664 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
666 RETURN_LONG(intern->flags); in PHP_METHOD()
673 spl_dllist_object *intern; in PHP_METHOD() local
680 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
682 RETURN_BOOL(index >= 0 && index < intern->llist->count); in PHP_METHOD()
689 spl_dllist_object *intern; in PHP_METHOD() local
696 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
698 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
703 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
718 spl_dllist_object *intern; in PHP_METHOD() local
724 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
728 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
733 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
738 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
759 spl_dllist_object *intern; in PHP_METHOD() local
767 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
768 llist = intern->llist; in PHP_METHOD()
770 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
775 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
799 if (intern->traverse_pointer == element) { in PHP_METHOD()
801 intern->traverse_pointer = NULL; in PHP_METHOD()
820 zval_ptr_dtor(&iterator->intern.data); in spl_dllist_it_dtor()
926 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
932 RETURN_LONG(intern->traverse_position); in PHP_METHOD()
939 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
945 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
952 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
958 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
965 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
971 RETURN_BOOL(intern->traverse_pointer != NULL); in PHP_METHOD()
978 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
984 …spl_dllist_it_helper_rewind(&intern->traverse_pointer, &intern->traverse_position, intern->llist, in PHP_METHOD()
991 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
992 spl_ptr_llist_element *element = intern->traverse_pointer; in PHP_METHOD()
1009 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1011 spl_ptr_llist_element *current = intern->llist->head, *next; in PHP_METHOD()
1022 ZVAL_LONG(&flags, intern->flags); in PHP_METHOD()
1048 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1063 while (intern->llist->count > 0) { in PHP_METHOD()
1065 spl_ptr_llist_pop(intern->llist, &tmp); in PHP_METHOD()
1078 intern->flags = (int)Z_LVAL_P(flags); in PHP_METHOD()
1089 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1109 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1110 spl_ptr_llist_element *current = intern->llist->head; in PHP_METHOD()
1120 ZVAL_LONG(&tmp, intern->flags); in PHP_METHOD()
1124 array_init_size(&tmp, intern->llist->count); in PHP_METHOD()
1134 zend_std_get_properties(&intern->std), /* always_duplicate */ 1)); in PHP_METHOD()
1140 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1159 intern->flags = (int) Z_LVAL_P(flags_zv); in PHP_METHOD()
1162 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1165 object_properties_load(&intern->std, Z_ARRVAL_P(members_zv)); in PHP_METHOD()
1172 spl_dllist_object *intern; in PHP_METHOD() local
1180 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
1182 if (index < 0 || index > intern->llist->count) { in PHP_METHOD()
1187 if (index == intern->llist->count) { in PHP_METHOD()
1189 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
1195 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
1206 intern->llist->head = elem; in PHP_METHOD()
1212 intern->llist->count++; in PHP_METHOD()
1249 zend_iterator_init(&iterator->intern); in spl_dllist_get_iterator()
1251 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in spl_dllist_get_iterator()
1252 iterator->intern.funcs = &spl_dllist_it_funcs; in spl_dllist_get_iterator()
1259 return &iterator->intern; in spl_dllist_get_iterator()