Lines Matching refs:intern

88 	zend_object_iterator   intern;  member
292 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_free_storage() local
295 zend_object_std_dtor(&intern->std); in spl_dllist_object_free_storage()
297 if (intern->llist) { in spl_dllist_object_free_storage()
298 while (intern->llist->count > 0) { in spl_dllist_object_free_storage()
299 spl_ptr_llist_pop(intern->llist, &tmp); in spl_dllist_object_free_storage()
302 spl_ptr_llist_destroy(intern->llist); in spl_dllist_object_free_storage()
304 SPL_LLIST_CHECK_DELREF(intern->traverse_pointer); in spl_dllist_object_free_storage()
310 spl_dllist_object *intern; in spl_dllist_object_new_ex() local
314 intern = zend_object_alloc(sizeof(spl_dllist_object), parent); in spl_dllist_object_new_ex()
316 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex()
317 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
319 intern->flags = 0; in spl_dllist_object_new_ex()
320 intern->traverse_position = 0; in spl_dllist_object_new_ex()
324 intern->ce_get_iterator = other->ce_get_iterator; in spl_dllist_object_new_ex()
327 intern->llist = spl_ptr_llist_init(); in spl_dllist_object_new_ex()
328 spl_ptr_llist_copy(other->llist, intern->llist); in spl_dllist_object_new_ex()
329 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
330 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
332 intern->llist = other->llist; in spl_dllist_object_new_ex()
333 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
334 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
337 intern->flags = other->flags; in spl_dllist_object_new_ex()
339 intern->llist = spl_ptr_llist_init(); in spl_dllist_object_new_ex()
340 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
341 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
346 intern->flags |= (SPL_DLLIST_IT_FIX | SPL_DLLIST_IT_LIFO); in spl_dllist_object_new_ex()
348 intern->flags |= SPL_DLLIST_IT_FIX; in spl_dllist_object_new_ex()
362intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
363 if (intern->fptr_offset_get->common.scope == parent) { in spl_dllist_object_new_ex()
364 intern->fptr_offset_get = NULL; in spl_dllist_object_new_ex()
366intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
367 if (intern->fptr_offset_set->common.scope == parent) { in spl_dllist_object_new_ex()
368 intern->fptr_offset_set = NULL; in spl_dllist_object_new_ex()
370intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
371 if (intern->fptr_offset_has->common.scope == parent) { in spl_dllist_object_new_ex()
372 intern->fptr_offset_has = NULL; in spl_dllist_object_new_ex()
374intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
375 if (intern->fptr_offset_del->common.scope == parent) { in spl_dllist_object_new_ex()
376 intern->fptr_offset_del = NULL; in spl_dllist_object_new_ex()
379 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_dllist_object_new_ex()
380 if (intern->fptr_count->common.scope == parent) { in spl_dllist_object_new_ex()
381 intern->fptr_count = NULL; in spl_dllist_object_new_ex()
385 return &intern->std; in spl_dllist_object_new_ex()
407 spl_dllist_object *intern = spl_dllist_from_obj(object); in spl_dllist_object_count_elements() local
409 if (intern->fptr_count) { in spl_dllist_object_count_elements()
411 zend_call_method_with_0_params(object, intern->std.ce, &intern->fptr_count, "count", &rv); in spl_dllist_object_count_elements()
421 *count = spl_ptr_llist_count(intern->llist); in spl_dllist_object_count_elements()
428 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_debug_info() local
429 spl_ptr_llist_element *current = intern->llist->head, *next; in spl_dllist_object_get_debug_info()
435 if (!intern->std.properties) { in spl_dllist_object_get_debug_info()
436 rebuild_object_properties(&intern->std); in spl_dllist_object_get_debug_info()
440 zend_hash_copy(debug_info, intern->std.properties, (copy_ctor_func_t) zval_add_ref); in spl_dllist_object_get_debug_info()
443 ZVAL_LONG(&tmp, intern->flags); in spl_dllist_object_get_debug_info()
471 spl_dllist_object *intern = spl_dllist_from_obj(obj); in spl_dllist_object_get_gc() local
473 spl_ptr_llist_element *current = intern->llist->head; in spl_dllist_object_get_gc()
489 spl_dllist_object *intern; in PHP_METHOD() local
495 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
496 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
504 spl_dllist_object *intern; in PHP_METHOD() local
510 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
511 spl_ptr_llist_unshift(intern->llist, value); in PHP_METHOD()
518 spl_dllist_object *intern; in PHP_METHOD() local
524 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
525 spl_ptr_llist_pop(intern->llist, return_value); in PHP_METHOD()
537 spl_dllist_object *intern; in PHP_METHOD() local
543 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
544 spl_ptr_llist_shift(intern->llist, return_value); in PHP_METHOD()
557 spl_dllist_object *intern; in PHP_METHOD() local
563 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
564 value = spl_ptr_llist_last(intern->llist); in PHP_METHOD()
579 spl_dllist_object *intern; in PHP_METHOD() local
585 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
586 value = spl_ptr_llist_first(intern->llist); in PHP_METHOD()
601 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
607 count = spl_ptr_llist_count(intern->llist); in PHP_METHOD()
630 spl_dllist_object *intern; in PHP_METHOD() local
636 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
638 if ((intern->flags & SPL_DLLIST_IT_FIX) in PHP_METHOD()
639 && (intern->flags & SPL_DLLIST_IT_LIFO) != (value & SPL_DLLIST_IT_LIFO)) { in PHP_METHOD()
644 intern->flags = (value & SPL_DLLIST_IT_MASK) | (intern->flags & SPL_DLLIST_IT_FIX); in PHP_METHOD()
646 RETURN_LONG(intern->flags); in PHP_METHOD()
653 spl_dllist_object *intern; in PHP_METHOD() local
659 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
661 RETURN_LONG(intern->flags); in PHP_METHOD()
668 spl_dllist_object *intern; in PHP_METHOD() local
675 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
677 RETURN_BOOL(index >= 0 && index < intern->llist->count); in PHP_METHOD()
684 spl_dllist_object *intern; in PHP_METHOD() local
691 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
693 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
698 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
713 spl_dllist_object *intern; in PHP_METHOD() local
719 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
723 spl_ptr_llist_push(intern->llist, value); in PHP_METHOD()
728 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
733 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
752 spl_dllist_object *intern; in PHP_METHOD() local
760 intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD()
761 llist = intern->llist; in PHP_METHOD()
763 if (index < 0 || index >= intern->llist->count) { in PHP_METHOD()
768 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in PHP_METHOD()
792 if (intern->traverse_pointer == element) { in PHP_METHOD()
794 intern->traverse_pointer = NULL; in PHP_METHOD()
813 zval_ptr_dtor(&iterator->intern.data); in spl_dllist_it_dtor()
919 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
925 RETURN_LONG(intern->traverse_position); in PHP_METHOD()
932 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
938 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
945 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
951 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD()
958 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
964 RETURN_BOOL(intern->traverse_pointer != NULL); in PHP_METHOD()
971 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
977 …spl_dllist_it_helper_rewind(&intern->traverse_pointer, &intern->traverse_position, intern->llist, in PHP_METHOD()
984 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
985 spl_ptr_llist_element *element = intern->traverse_pointer; in PHP_METHOD()
1002 spl_dllist_object *intern = Z_SPLDLLIST_P(ZEND_THIS); in PHP_METHOD() local
1004 spl_ptr_llist_element *current = intern->llist->head, *next; in PHP_METHOD()
1015 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()