Lines Matching refs:intern

89 	zend_object_iterator   intern;  member
293 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_free_storage() local
296 zend_object_std_dtor(&intern->std); in spl_dllist_object_free_storage()
298 if (intern->llist) { in spl_dllist_object_free_storage()
299 while (intern->llist->count > 0) { in spl_dllist_object_free_storage()
300 spl_ptr_llist_pop(intern->llist, &tmp); in spl_dllist_object_free_storage()
303 spl_ptr_llist_destroy(intern->llist); in spl_dllist_object_free_storage()
305 SPL_LLIST_CHECK_DELREF(intern->traverse_pointer); in spl_dllist_object_free_storage()
311 spl_dllist_object *intern; in spl_dllist_object_new_ex() local
315 intern = zend_object_alloc(sizeof(spl_dllist_object), parent); in spl_dllist_object_new_ex()
317 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex()
318 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
320 intern->flags = 0; in spl_dllist_object_new_ex()
321 intern->traverse_position = 0; in spl_dllist_object_new_ex()
325 intern->ce_get_iterator = other->ce_get_iterator; in spl_dllist_object_new_ex()
328 intern->llist = spl_ptr_llist_init(); in spl_dllist_object_new_ex()
329 spl_ptr_llist_copy(other->llist, intern->llist); in spl_dllist_object_new_ex()
330 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
331 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
333 intern->llist = other->llist; in spl_dllist_object_new_ex()
334 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
335 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
338 intern->flags = other->flags; in spl_dllist_object_new_ex()
340 intern->llist = spl_ptr_llist_init(); in spl_dllist_object_new_ex()
341 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
342 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
347 intern->flags |= (SPL_DLLIST_IT_FIX | SPL_DLLIST_IT_LIFO); in spl_dllist_object_new_ex()
349 intern->flags |= SPL_DLLIST_IT_FIX; in spl_dllist_object_new_ex()
363intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
364 if (intern->fptr_offset_get->common.scope == parent) { in spl_dllist_object_new_ex()
365 intern->fptr_offset_get = NULL; in spl_dllist_object_new_ex()
367intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
368 if (intern->fptr_offset_set->common.scope == parent) { in spl_dllist_object_new_ex()
369 intern->fptr_offset_set = NULL; in spl_dllist_object_new_ex()
371intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
372 if (intern->fptr_offset_has->common.scope == parent) { in spl_dllist_object_new_ex()
373 intern->fptr_offset_has = NULL; in spl_dllist_object_new_ex()
375intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
376 if (intern->fptr_offset_del->common.scope == parent) { in spl_dllist_object_new_ex()
377 intern->fptr_offset_del = NULL; in spl_dllist_object_new_ex()
380 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_dllist_object_new_ex()
381 if (intern->fptr_count->common.scope == parent) { in spl_dllist_object_new_ex()
382 intern->fptr_count = NULL; in spl_dllist_object_new_ex()
386 return &intern->std; in spl_dllist_object_new_ex()
408 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_count_elements() local
410 if (intern->fptr_count) { in spl_dllist_object_count_elements()
412 zend_call_method_with_0_params(object, intern->std.ce, &intern->fptr_count, "count", &rv); in spl_dllist_object_count_elements()
422 *count = spl_ptr_llist_count(intern->llist); in spl_dllist_object_count_elements()
429 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_debug_info() local
430 spl_ptr_llist_element *current = intern->llist->head; in spl_dllist_object_get_debug_info()
433 HashTable *properties = zend_std_get_properties_ex(&intern->std); in spl_dllist_object_get_debug_info()
439 ZVAL_LONG(&tmp, intern->flags); in spl_dllist_object_get_debug_info()
465 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_gc() local
467 spl_ptr_llist_element *current = intern->llist->head; in spl_dllist_object_get_gc()
483 spl_dllist_object *intern; in PHP_METHOD() local
489 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
490 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
498 spl_dllist_object *intern; in PHP_METHOD() local
504 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
505 spl_ptr_llist_unshift(intern->llist, value); in PHP_METHOD()
512 spl_dllist_object *intern; in PHP_METHOD() local
518 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
519 spl_ptr_llist_pop(intern->llist, return_value); in PHP_METHOD()
531 spl_dllist_object *intern; in PHP_METHOD() local
537 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
538 spl_ptr_llist_shift(intern->llist, return_value); in PHP_METHOD()
551 spl_dllist_object *intern; in PHP_METHOD() local
557 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
558 value = spl_ptr_llist_last(intern->llist); in PHP_METHOD()
573 spl_dllist_object *intern; in PHP_METHOD() local
579 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
580 value = spl_ptr_llist_first(intern->llist); in PHP_METHOD()
595 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
601 count = spl_ptr_llist_count(intern->llist); in PHP_METHOD()
624 spl_dllist_object *intern; in PHP_METHOD() local
630 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
632 if ((intern->flags & SPL_DLLIST_IT_FIX) in PHP_METHOD()
633 && (intern->flags & SPL_DLLIST_IT_LIFO) != (value & SPL_DLLIST_IT_LIFO)) { in PHP_METHOD()
638 intern->flags = (value & SPL_DLLIST_IT_MASK) | (intern->flags & SPL_DLLIST_IT_FIX); in PHP_METHOD()
640 RETURN_LONG(intern->flags); in PHP_METHOD()
647 spl_dllist_object *intern; in PHP_METHOD() local
653 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
655 RETURN_LONG(intern->flags); in PHP_METHOD()
662 spl_dllist_object *intern; in PHP_METHOD() local
669 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
671 RETURN_BOOL(index >= 0 && index < intern->llist->count); in PHP_METHOD()
678 spl_dllist_object *intern; in PHP_METHOD() local
685 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
687 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
692 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
707 spl_dllist_object *intern; in PHP_METHOD() local
713 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
717 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
722 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
727 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
748 spl_dllist_object *intern; in PHP_METHOD() local
756 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
757 llist = intern->llist; in PHP_METHOD()
759 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
764 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
788 if (intern->traverse_pointer == element) { in PHP_METHOD()
790 intern->traverse_pointer = NULL; in PHP_METHOD()
809 zval_ptr_dtor(&iterator->intern.data); in spl_dllist_it_dtor()
915 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
921 RETURN_LONG(intern->traverse_position); in PHP_METHOD()
928 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
934 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
941 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
947 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
954 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
960 RETURN_BOOL(intern->traverse_pointer != NULL); in PHP_METHOD()
967 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
973 …spl_dllist_it_helper_rewind(&intern->traverse_pointer, &intern->traverse_position, intern->llist, in PHP_METHOD()
980 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
981 spl_ptr_llist_element *element = intern->traverse_pointer; in PHP_METHOD()
998 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1000 spl_ptr_llist_element *current = intern->llist->head, *next; in PHP_METHOD()
1011 ZVAL_LONG(&flags, intern->flags); in PHP_METHOD()
1037 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1052 while (intern->llist->count > 0) { in PHP_METHOD()
1054 spl_ptr_llist_pop(intern->llist, &tmp); in PHP_METHOD()
1067 intern->flags = (int)Z_LVAL_P(flags); in PHP_METHOD()
1078 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1098 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1099 spl_ptr_llist_element *current = intern->llist->head; in PHP_METHOD()
1109 ZVAL_LONG(&tmp, intern->flags); in PHP_METHOD()
1113 array_init_size(&tmp, intern->llist->count); in PHP_METHOD()
1123 zend_std_get_properties(&intern->std), /* always_duplicate */ 1)); in PHP_METHOD()
1129 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1148 intern->flags = (int) Z_LVAL_P(flags_zv); in PHP_METHOD()
1151 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1154 object_properties_load(&intern->std, Z_ARRVAL_P(members_zv)); in PHP_METHOD()
1161 spl_dllist_object *intern; in PHP_METHOD() local
1169 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
1171 if (index < 0 || index > intern->llist->count) { in PHP_METHOD()
1176 if (index == intern->llist->count) { in PHP_METHOD()
1178 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
1184 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
1195 intern->llist->head = elem; in PHP_METHOD()
1201 intern->llist->count++; in PHP_METHOD()
1238 zend_iterator_init(&iterator->intern); in spl_dllist_get_iterator()
1240 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in spl_dllist_get_iterator()
1241 iterator->intern.funcs = &spl_dllist_it_funcs; in spl_dllist_get_iterator()
1248 return &iterator->intern; in spl_dllist_get_iterator()