Lines Matching refs:intern

78 	zend_user_iterator  intern;  member
380 spl_heap_object *intern = spl_heap_from_obj(object); in spl_heap_object_free_storage() local
382 zend_object_std_dtor(&intern->std); in spl_heap_object_free_storage()
384 spl_ptr_heap_destroy(intern->heap); in spl_heap_object_free_storage()
390 spl_heap_object *intern; in spl_heap_object_new_ex() local
394 intern = zend_object_alloc(sizeof(spl_heap_object), parent); in spl_heap_object_new_ex()
396 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex()
397 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex()
401 intern->std.handlers = other->std.handlers; in spl_heap_object_new_ex()
404 intern->heap = spl_ptr_heap_clone(other->heap); in spl_heap_object_new_ex()
406 intern->heap = other->heap; in spl_heap_object_new_ex()
409 intern->flags = other->flags; in spl_heap_object_new_ex()
410 intern->fptr_cmp = other->fptr_cmp; in spl_heap_object_new_ex()
411 intern->fptr_count = other->fptr_count; in spl_heap_object_new_ex()
412 return &intern->std; in spl_heap_object_new_ex()
417intern->heap = spl_ptr_heap_init(spl_ptr_pqueue_elem_cmp, spl_ptr_heap_pqueue_elem_ctor, spl_ptr_h… in spl_heap_object_new_ex()
418 intern->std.handlers = &spl_handler_SplPriorityQueue; in spl_heap_object_new_ex()
419 intern->flags = SPL_PQUEUE_EXTR_DATA; in spl_heap_object_new_ex()
425 intern->heap = spl_ptr_heap_init( in spl_heap_object_new_ex()
428 intern->std.handlers = &spl_handler_SplHeap; in spl_heap_object_new_ex()
439intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex()
440 if (intern->fptr_cmp->common.scope == parent) { in spl_heap_object_new_ex()
441 intern->fptr_cmp = NULL; in spl_heap_object_new_ex()
443intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_heap_object_new_ex()
444 if (intern->fptr_count->common.scope == parent) { in spl_heap_object_new_ex()
445 intern->fptr_count = NULL; in spl_heap_object_new_ex()
449 return &intern->std; in spl_heap_object_new_ex()
471 spl_heap_object *intern = spl_heap_from_obj(object); in spl_heap_object_count_elements() local
473 if (intern->fptr_count) { in spl_heap_object_count_elements()
475 zend_call_method_with_0_params(object, intern->std.ce, &intern->fptr_count, "count", &rv); in spl_heap_object_count_elements()
485 *count = spl_ptr_heap_count(intern->heap); in spl_heap_object_count_elements()
492 spl_heap_object *intern = spl_heap_from_obj(obj); in spl_heap_object_get_debug_info() local
498 if (!intern->std.properties) { in spl_heap_object_get_debug_info()
499 rebuild_object_properties(&intern->std); in spl_heap_object_get_debug_info()
502 debug_info = zend_new_array(zend_hash_num_elements(intern->std.properties) + 1); in spl_heap_object_get_debug_info()
503 zend_hash_copy(debug_info, intern->std.properties, (copy_ctor_func_t) zval_add_ref); in spl_heap_object_get_debug_info()
506 ZVAL_LONG(&tmp, intern->flags); in spl_heap_object_get_debug_info()
511 ZVAL_BOOL(&tmp, intern->heap->flags&SPL_HEAP_CORRUPTED); in spl_heap_object_get_debug_info()
517 for (i = 0; i < intern->heap->count; ++i) { in spl_heap_object_get_debug_info()
519 spl_pqueue_elem *pq_elem = spl_heap_elem(intern->heap, i); in spl_heap_object_get_debug_info()
524 zval *elem = spl_heap_elem(intern->heap, i); in spl_heap_object_get_debug_info()
540 spl_heap_object *intern = spl_heap_from_obj(obj); in spl_heap_object_get_gc() local
541 *gc_data = (zval *) intern->heap->elements; in spl_heap_object_get_gc()
542 *gc_data_count = intern->heap->count; in spl_heap_object_get_gc()
550 spl_heap_object *intern = spl_heap_from_obj(obj); in spl_pqueue_object_get_gc() local
551 *gc_data = (zval *) intern->heap->elements; in spl_pqueue_object_get_gc()
553 *gc_data_count = 2 * intern->heap->count; in spl_pqueue_object_get_gc()
563 spl_heap_object *intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD() local
569 count = spl_ptr_heap_count(intern->heap); in PHP_METHOD()
577 spl_heap_object *intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD() local
583 RETURN_BOOL(spl_ptr_heap_count(intern->heap) == 0); in PHP_METHOD()
591 spl_heap_object *intern; in PHP_METHOD() local
597 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
599 if (intern->heap->flags & SPL_HEAP_CORRUPTED) { in PHP_METHOD()
605 spl_ptr_heap_insert(intern->heap, value, ZEND_THIS); in PHP_METHOD()
614 spl_heap_object *intern; in PHP_METHOD() local
620 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
622 if (intern->heap->flags & SPL_HEAP_CORRUPTED) { in PHP_METHOD()
627 if (spl_ptr_heap_delete_top(intern->heap, return_value, ZEND_THIS) == FAILURE) { in PHP_METHOD()
638 spl_heap_object *intern; in PHP_METHOD() local
645 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
647 if (intern->heap->flags & SPL_HEAP_CORRUPTED) { in PHP_METHOD()
655 spl_ptr_heap_insert(intern->heap, &elem, ZEND_THIS); in PHP_METHOD()
665 spl_heap_object *intern; in PHP_METHOD() local
671 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
673 if (intern->heap->flags & SPL_HEAP_CORRUPTED) { in PHP_METHOD()
678 if (spl_ptr_heap_delete_top(intern->heap, &elem, ZEND_THIS) == FAILURE) { in PHP_METHOD()
683 spl_pqueue_extract_helper(return_value, &elem, intern->flags); in PHP_METHOD()
691 spl_heap_object *intern; in PHP_METHOD() local
698 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
700 if (intern->heap->flags & SPL_HEAP_CORRUPTED) { in PHP_METHOD()
705 elem = spl_ptr_heap_top(intern->heap); in PHP_METHOD()
712 spl_pqueue_extract_helper(return_value, elem, intern->flags); in PHP_METHOD()
721 spl_heap_object *intern; in PHP_METHOD() local
733 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
734 intern->flags = value; in PHP_METHOD()
735 RETURN_LONG(intern->flags); in PHP_METHOD()
742 spl_heap_object *intern; in PHP_METHOD() local
748 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
750 RETURN_LONG(intern->flags); in PHP_METHOD()
757 spl_heap_object *intern; in PHP_METHOD() local
763 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
765 intern->heap->flags = intern->heap->flags & ~SPL_HEAP_CORRUPTED; in PHP_METHOD()
774 spl_heap_object *intern; in PHP_METHOD() local
780 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
782 RETURN_BOOL(intern->heap->flags & SPL_HEAP_CORRUPTED); in PHP_METHOD()
803 spl_heap_object *intern; in PHP_METHOD() local
809 intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD()
811 if (intern->heap->flags & SPL_HEAP_CORRUPTED) { in PHP_METHOD()
816 value = spl_ptr_heap_top(intern->heap); in PHP_METHOD()
858 zval_ptr_dtor(&iterator->intern.it.data); in spl_heap_it_dtor()
938 spl_heap_object *intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD() local
944 RETURN_LONG(intern->heap->count - 1); in PHP_METHOD()
951 spl_heap_object *intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD() local
957 spl_ptr_heap_delete_top(intern->heap, NULL, ZEND_THIS); in PHP_METHOD()
964 spl_heap_object *intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD() local
970 RETURN_BOOL(intern->heap->count != 0); in PHP_METHOD()
987 spl_heap_object *intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD() local
993 if (!intern->heap->count) { in PHP_METHOD()
996 zval *element = spl_heap_elem(intern->heap, 0); in PHP_METHOD()
1005 spl_heap_object *intern = Z_SPLHEAP_P(ZEND_THIS); in PHP_METHOD() local
1011 if (!intern->heap->count) { in PHP_METHOD()
1014 spl_pqueue_elem *elem = spl_heap_elem(intern->heap, 0); in PHP_METHOD()
1015 spl_pqueue_extract_helper(return_value, elem, intern->flags); in PHP_METHOD()
1075 zend_iterator_init(&iterator->intern.it); in spl_heap_get_iterator()
1078 ZVAL_OBJ(&iterator->intern.it.data, Z_OBJ_P(object)); in spl_heap_get_iterator()
1079 iterator->intern.it.funcs = &spl_heap_it_funcs; in spl_heap_get_iterator()
1080 iterator->intern.ce = ce; in spl_heap_get_iterator()
1082 ZVAL_UNDEF(&iterator->intern.value); in spl_heap_get_iterator()
1084 return &iterator->intern.it; in spl_heap_get_iterator()
1103 ZVAL_OBJ(&iterator->intern.it.data, Z_OBJ_P(object)); in spl_pqueue_get_iterator()
1104 iterator->intern.it.funcs = &spl_pqueue_it_funcs; in spl_pqueue_get_iterator()
1105 iterator->intern.ce = ce; in spl_pqueue_get_iterator()
1108 ZVAL_UNDEF(&iterator->intern.value); in spl_pqueue_get_iterator()
1110 return &iterator->intern.it; in spl_pqueue_get_iterator()