Lines Matching refs:intern

103 	zend_user_iterator     intern;  member
342 spl_dllist_object *intern = (spl_dllist_object *)object; in spl_dllist_object_free_storage() local
345 zend_object_std_dtor(&intern->std TSRMLS_CC); in spl_dllist_object_free_storage()
347 while(intern->llist->count > 0) { in spl_dllist_object_free_storage()
348 tmp = (zval *)spl_ptr_llist_pop(intern->llist TSRMLS_CC); in spl_dllist_object_free_storage()
352 spl_ptr_llist_destroy(intern->llist TSRMLS_CC); in spl_dllist_object_free_storage()
353 SPL_LLIST_CHECK_DELREF(intern->traverse_pointer); in spl_dllist_object_free_storage()
354 zval_ptr_dtor(&intern->retval); in spl_dllist_object_free_storage()
356 if (intern->debug_info != NULL) { in spl_dllist_object_free_storage()
357 zend_hash_destroy(intern->debug_info); in spl_dllist_object_free_storage()
358 efree(intern->debug_info); in spl_dllist_object_free_storage()
370 spl_dllist_object *intern; in spl_dllist_object_new_ex() local
374 intern = ecalloc(1, sizeof(spl_dllist_object)); in spl_dllist_object_new_ex()
375 *obj = intern; in spl_dllist_object_new_ex()
376 ALLOC_INIT_ZVAL(intern->retval); in spl_dllist_object_new_ex()
378 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_dllist_object_new_ex()
379 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
381 intern->flags = 0; in spl_dllist_object_new_ex()
382 intern->traverse_position = 0; in spl_dllist_object_new_ex()
383 intern->debug_info = NULL; in spl_dllist_object_new_ex()
387 intern->ce_get_iterator = other->ce_get_iterator; in spl_dllist_object_new_ex()
390 intern->llist = (spl_ptr_llist *)spl_ptr_llist_init(other->llist->ctor, other->llist->dtor); in spl_dllist_object_new_ex()
391 spl_ptr_llist_copy(other->llist, intern->llist TSRMLS_CC); in spl_dllist_object_new_ex()
392 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
393 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
395 intern->llist = other->llist; in spl_dllist_object_new_ex()
396 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
397 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
400 intern->flags = other->flags; in spl_dllist_object_new_ex()
402intern->llist = (spl_ptr_llist *)spl_ptr_llist_init(spl_ptr_llist_zval_ctor, spl_ptr_llist_zval_dt… in spl_dllist_object_new_ex()
403 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
404 SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); in spl_dllist_object_new_ex()
409 intern->flags |= (SPL_DLLIST_IT_FIX | SPL_DLLIST_IT_LIFO); in spl_dllist_object_new_ex()
412 intern->flags |= SPL_DLLIST_IT_FIX; in spl_dllist_object_new_ex()
425 …retval.handle = zend_objects_store_put(intern, (zend_objects_store_dtor_t)zend_objects_destroy_obj… in spl_dllist_object_new_ex()
431 …_type->function_table, "offsetget", sizeof("offsetget"), (void **) &intern->fptr_offset_get); in spl_dllist_object_new_ex()
432 if (intern->fptr_offset_get->common.scope == parent) { in spl_dllist_object_new_ex()
433 intern->fptr_offset_get = NULL; in spl_dllist_object_new_ex()
435 …_type->function_table, "offsetset", sizeof("offsetset"), (void **) &intern->fptr_offset_set); in spl_dllist_object_new_ex()
436 if (intern->fptr_offset_set->common.scope == parent) { in spl_dllist_object_new_ex()
437 intern->fptr_offset_set = NULL; in spl_dllist_object_new_ex()
439 …_type->function_table, "offsetexists", sizeof("offsetexists"), (void **) &intern->fptr_offset_has); in spl_dllist_object_new_ex()
440 if (intern->fptr_offset_has->common.scope == parent) { in spl_dllist_object_new_ex()
441 intern->fptr_offset_has = NULL; in spl_dllist_object_new_ex()
443 …_type->function_table, "offsetunset", sizeof("offsetunset"), (void **) &intern->fptr_offset_del); in spl_dllist_object_new_ex()
444 if (intern->fptr_offset_del->common.scope == parent) { in spl_dllist_object_new_ex()
445 intern->fptr_offset_del = NULL; in spl_dllist_object_new_ex()
447 …class_type->function_table, "count", sizeof("count"), (void **) &intern->fptr_count); in spl_dllist_object_new_ex()
448 if (intern->fptr_count->common.scope == parent) { in spl_dllist_object_new_ex()
449 intern->fptr_count = NULL; in spl_dllist_object_new_ex()
470 spl_dllist_object *intern; in spl_dllist_object_clone() local
473 new_obj_val = spl_dllist_object_new_ex(old_object->ce, &intern, zobject, 1 TSRMLS_CC); in spl_dllist_object_clone()
474 new_object = &intern->std; in spl_dllist_object_clone()
484 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(object TSRMLS_CC); in spl_dllist_object_count_elements() local
486 if (intern->fptr_count) { in spl_dllist_object_count_elements()
488 zend_call_method_with_0_params(&object, intern->std.ce, &intern->fptr_count, "count", &rv); in spl_dllist_object_count_elements()
490 zval_ptr_dtor(&intern->retval); in spl_dllist_object_count_elements()
491 MAKE_STD_ZVAL(intern->retval); in spl_dllist_object_count_elements()
492 ZVAL_ZVAL(intern->retval, rv, 1, 1); in spl_dllist_object_count_elements()
493 convert_to_long(intern->retval); in spl_dllist_object_count_elements()
494 *count = (long) Z_LVAL_P(intern->retval); in spl_dllist_object_count_elements()
501 *count = spl_ptr_llist_count(intern->llist); in spl_dllist_object_count_elements()
508 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(obj TSRMLS_CC); in spl_dllist_object_get_debug_info() local
509 spl_ptr_llist_element *current = intern->llist->head, *next; in spl_dllist_object_get_debug_info()
517 if (intern->debug_info == NULL) { in spl_dllist_object_get_debug_info()
518 ALLOC_HASHTABLE(intern->debug_info); in spl_dllist_object_get_debug_info()
519 zend_hash_init(intern->debug_info, 1, NULL, ZVAL_PTR_DTOR, 0); in spl_dllist_object_get_debug_info()
522 if (intern->debug_info->nApplyCount == 0) { in spl_dllist_object_get_debug_info()
524 Z_ARRVAL(zrv) = intern->debug_info; in spl_dllist_object_get_debug_info()
526 if (!intern->std.properties) { in spl_dllist_object_get_debug_info()
527 rebuild_object_properties(&intern->std); in spl_dllist_object_get_debug_info()
529 …zend_hash_copy(intern->debug_info, intern->std.properties, (copy_ctor_func_t) zval_add_ref, (void … in spl_dllist_object_get_debug_info()
532 add_assoc_long_ex(&zrv, pnstr, pnlen+1, intern->flags); in spl_dllist_object_get_debug_info()
553 return intern->debug_info; in spl_dllist_object_get_debug_info()
562 spl_dllist_object *intern; in SPL_METHOD() local
570 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
571 spl_ptr_llist_push(intern->llist, value TSRMLS_CC); in SPL_METHOD()
582 spl_dllist_object *intern; in SPL_METHOD() local
590 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
591 spl_ptr_llist_unshift(intern->llist, value TSRMLS_CC); in SPL_METHOD()
602 spl_dllist_object *intern; in SPL_METHOD() local
608 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
609 value = (zval *)spl_ptr_llist_pop(intern->llist TSRMLS_CC); in SPL_METHOD()
625 spl_dllist_object *intern; in SPL_METHOD() local
631 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
632 value = (zval *)spl_ptr_llist_shift(intern->llist TSRMLS_CC); in SPL_METHOD()
648 spl_dllist_object *intern; in SPL_METHOD() local
654 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
655 value = (zval *)spl_ptr_llist_last(intern->llist); in SPL_METHOD()
671 spl_dllist_object *intern; in SPL_METHOD() local
677 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
678 value = (zval *)spl_ptr_llist_first(intern->llist); in SPL_METHOD()
694 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD() local
700 count = spl_ptr_llist_count(intern->llist); in SPL_METHOD()
725 spl_dllist_object *intern; in SPL_METHOD() local
731 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
733 if (intern->flags & SPL_DLLIST_IT_FIX in SPL_METHOD()
734 && (intern->flags & SPL_DLLIST_IT_LIFO) != (value & SPL_DLLIST_IT_LIFO)) { in SPL_METHOD()
739 intern->flags = value & SPL_DLLIST_IT_MASK; in SPL_METHOD()
741 RETURN_LONG(intern->flags); in SPL_METHOD()
749 spl_dllist_object *intern; in SPL_METHOD() local
755 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
757 RETURN_LONG(intern->flags); in SPL_METHOD()
766 spl_dllist_object *intern; in SPL_METHOD() local
773 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
776 RETURN_BOOL(index >= 0 && index < intern->llist->count); in SPL_METHOD()
785 spl_dllist_object *intern; in SPL_METHOD() local
792 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
795 if (index < 0 || index >= intern->llist->count) { in SPL_METHOD()
800 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in SPL_METHOD()
816 spl_dllist_object *intern; in SPL_METHOD() local
823 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
827 spl_ptr_llist_push(intern->llist, value TSRMLS_CC); in SPL_METHOD()
835 if (index < 0 || index >= intern->llist->count) { in SPL_METHOD()
841 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in SPL_METHOD()
845 if (intern->llist->dtor) { in SPL_METHOD()
846 intern->llist->dtor(element TSRMLS_CC); in SPL_METHOD()
855 if (intern->llist->ctor) { in SPL_METHOD()
856 intern->llist->ctor(element TSRMLS_CC); in SPL_METHOD()
872 spl_dllist_object *intern; in SPL_METHOD() local
880 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
882 llist = intern->llist; in SPL_METHOD()
884 if (index < 0 || index >= intern->llist->count) { in SPL_METHOD()
889 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in SPL_METHOD()
917 if (intern->traverse_pointer == element) { in SPL_METHOD()
919 intern->traverse_pointer = NULL; in SPL_METHOD()
939 zval_ptr_dtor((zval**)&iterator->intern.it.data); in spl_dllist_it_dtor()
1052 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD() local
1058 RETURN_LONG(intern->traverse_position); in SPL_METHOD()
1066 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD() local
1072 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in SPL_METHOD()
1080 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD() local
1086 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in SPL_METHOD()
1094 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD() local
1100 RETURN_BOOL(intern->traverse_pointer != NULL); in SPL_METHOD()
1108 spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD() local
1114 …spl_dllist_it_helper_rewind(&intern->traverse_pointer, &intern->traverse_position, intern->llist, in SPL_METHOD()
1122 …spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS… in SPL_METHOD() local
1123 spl_ptr_llist_element *element = intern->traverse_pointer; in SPL_METHOD()
1141 …spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRML… in SPL_METHOD() local
1143 spl_ptr_llist_element *current = intern->llist->head, *next; in SPL_METHOD()
1155 ZVAL_LONG(flags, intern->flags); in SPL_METHOD()
1186 …spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRML… in SPL_METHOD() local
1212 intern->flags = Z_LVAL_P(flags); in SPL_METHOD()
1225 spl_ptr_llist_push(intern->llist, elem TSRMLS_CC); in SPL_METHOD()
1247 spl_dllist_object *intern; in SPL_METHOD() local
1255 intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC); in SPL_METHOD()
1258 if (index < 0 || index > intern->llist->count) { in SPL_METHOD()
1264 if (index == intern->llist->count) { in SPL_METHOD()
1266 spl_ptr_llist_push(intern->llist, value TSRMLS_CC); in SPL_METHOD()
1272 element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO); in SPL_METHOD()
1282 intern->llist->head = elem; in SPL_METHOD()
1288 intern->llist->count++; in SPL_METHOD()
1290 if (intern->llist->ctor) { in SPL_METHOD()
1291 intern->llist->ctor(elem TSRMLS_CC); in SPL_METHOD()
1320 iterator->intern.it.data = (void*)object; in spl_dllist_get_iterator()
1321 iterator->intern.it.funcs = &spl_dllist_it_funcs; in spl_dllist_get_iterator()
1322 iterator->intern.ce = ce; in spl_dllist_get_iterator()
1323 iterator->intern.value = NULL; in spl_dllist_get_iterator()