Lines Matching refs:intern

60 	zend_object_iterator intern;  member
197 spl_fixedarray_object *intern = spl_fixed_array_from_obj(obj); in spl_fixedarray_object_get_gc() local
200 *table = intern->array.elements; in spl_fixedarray_object_get_gc()
201 *n = (int)intern->array.size; in spl_fixedarray_object_get_gc()
208 spl_fixedarray_object *intern = spl_fixed_array_from_obj(obj); in spl_fixedarray_object_get_properties() local
211 if (!spl_fixedarray_empty(&intern->array)) { in spl_fixedarray_object_get_properties()
222 if (!intern->array.should_rebuild_properties) { in spl_fixedarray_object_get_properties()
226 intern->array.should_rebuild_properties = false; in spl_fixedarray_object_get_properties()
231 intern->std.properties = zend_array_dup(ht); in spl_fixedarray_object_get_properties()
236 for (zend_long i = 0; i < intern->array.size; i++) { in spl_fixedarray_object_get_properties()
237 zend_hash_index_update(ht, i, &intern->array.elements[i]); in spl_fixedarray_object_get_properties()
238 Z_TRY_ADDREF(intern->array.elements[i]); in spl_fixedarray_object_get_properties()
240 if (j > intern->array.size) { in spl_fixedarray_object_get_properties()
241 for (zend_long i = intern->array.size; i < j; ++i) { in spl_fixedarray_object_get_properties()
252 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_free_storage() local
253 spl_fixedarray_dtor(&intern->array); in spl_fixedarray_object_free_storage()
254 zend_object_std_dtor(&intern->std); in spl_fixedarray_object_free_storage()
259 spl_fixedarray_object *intern; in spl_fixedarray_object_new_ex() local
263 intern = zend_object_alloc(sizeof(spl_fixedarray_object), parent); in spl_fixedarray_object_new_ex()
265 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
266 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
270 spl_fixedarray_copy_ctor(&intern->array, &other->array); in spl_fixedarray_object_new_ex()
275 intern->std.handlers = &spl_handler_SplFixedArray; in spl_fixedarray_object_new_ex()
286intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_fixedarray_object_new_ex()
287 if (intern->fptr_offset_get->common.scope == parent) { in spl_fixedarray_object_new_ex()
288 intern->fptr_offset_get = NULL; in spl_fixedarray_object_new_ex()
290intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_fixedarray_object_new_ex()
291 if (intern->fptr_offset_set->common.scope == parent) { in spl_fixedarray_object_new_ex()
292 intern->fptr_offset_set = NULL; in spl_fixedarray_object_new_ex()
294intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_fixedarray_object_new_ex()
295 if (intern->fptr_offset_has->common.scope == parent) { in spl_fixedarray_object_new_ex()
296 intern->fptr_offset_has = NULL; in spl_fixedarray_object_new_ex()
298intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_fixedarray_object_new_ex()
299 if (intern->fptr_offset_del->common.scope == parent) { in spl_fixedarray_object_new_ex()
300 intern->fptr_offset_del = NULL; in spl_fixedarray_object_new_ex()
302intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_fixedarray_object_new_ex()
303 if (intern->fptr_count->common.scope == parent) { in spl_fixedarray_object_new_ex()
304 intern->fptr_count = NULL; in spl_fixedarray_object_new_ex()
308 return &intern->std; in spl_fixedarray_object_new_ex()
325 static zval *spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_read_dimension_helper() argument
342 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_read_dimension_helper()
346 return &intern->array.elements[index]; in spl_fixedarray_object_read_dimension_helper()
354 spl_fixedarray_object *intern; in spl_fixedarray_object_read_dimension() local
356 intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_read_dimension()
362 if (intern->fptr_offset_get) { in spl_fixedarray_object_read_dimension()
370 …zend_call_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_get, "offsetGet", rv, … in spl_fixedarray_object_read_dimension()
378 intern->array.should_rebuild_properties = true; in spl_fixedarray_object_read_dimension()
381 return spl_fixedarray_object_read_dimension_helper(intern, offset); in spl_fixedarray_object_read_dimension()
384 static void spl_fixedarray_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_write_dimension_helper() argument
400 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_write_dimension_helper()
404 intern->array.should_rebuild_properties = true; in spl_fixedarray_object_write_dimension_helper()
406 zval *ptr = &(intern->array.elements[index]); in spl_fixedarray_object_write_dimension_helper()
416 spl_fixedarray_object *intern; in spl_fixedarray_object_write_dimension() local
419 intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_write_dimension()
421 if (intern->fptr_offset_set) { in spl_fixedarray_object_write_dimension()
429 …zend_call_method_with_2_params(object, intern->std.ce, &intern->fptr_offset_set, "offsetSet", NULL… in spl_fixedarray_object_write_dimension()
435 spl_fixedarray_object_write_dimension_helper(intern, offset, value); in spl_fixedarray_object_write_dimension()
438 static void spl_fixedarray_object_unset_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_unset_dimension_helper() argument
448 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_unset_dimension_helper()
452 intern->array.should_rebuild_properties = true; in spl_fixedarray_object_unset_dimension_helper()
453 zval_ptr_dtor(&(intern->array.elements[index])); in spl_fixedarray_object_unset_dimension_helper()
454 ZVAL_NULL(&intern->array.elements[index]); in spl_fixedarray_object_unset_dimension_helper()
460 spl_fixedarray_object *intern; in spl_fixedarray_object_unset_dimension() local
462 intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_unset_dimension()
464 if (intern->fptr_offset_del) { in spl_fixedarray_object_unset_dimension()
466 …zend_call_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_del, "offsetUnset", NU… in spl_fixedarray_object_unset_dimension()
471 spl_fixedarray_object_unset_dimension_helper(intern, offset); in spl_fixedarray_object_unset_dimension()
474 static int spl_fixedarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset, … in spl_fixedarray_object_has_dimension_helper() argument
485 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_has_dimension_helper()
489 retval = zend_is_true(&intern->array.elements[index]); in spl_fixedarray_object_has_dimension_helper()
491 retval = Z_TYPE(intern->array.elements[index]) != IS_NULL; in spl_fixedarray_object_has_dimension_helper()
500 spl_fixedarray_object *intern; in spl_fixedarray_object_has_dimension() local
502 intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_has_dimension()
504 if (intern->fptr_offset_has) { in spl_fixedarray_object_has_dimension()
509 …zend_call_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_has, "offsetExists", &… in spl_fixedarray_object_has_dimension()
516 return spl_fixedarray_object_has_dimension_helper(intern, offset, check_empty); in spl_fixedarray_object_has_dimension()
521 spl_fixedarray_object *intern; in spl_fixedarray_object_count_elements() local
523 intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_count_elements()
524 if (intern->fptr_count) { in spl_fixedarray_object_count_elements()
526 zend_call_method_with_0_params(object, intern->std.ce, &intern->fptr_count, "count", &rv); in spl_fixedarray_object_count_elements()
534 *count = intern->array.size; in spl_fixedarray_object_count_elements()
542 spl_fixedarray_object *intern; in PHP_METHOD() local
554 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
556 if (!spl_fixedarray_empty(&intern->array)) { in PHP_METHOD()
561 spl_fixedarray_init(&intern->array, size); in PHP_METHOD()
566 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
574 if (intern->array.size == 0) { in PHP_METHOD()
578 spl_fixedarray_init(&intern->array, size); in PHP_METHOD()
581 ZVAL_COPY(&intern->array.elements[index], data); in PHP_METHOD()
594 spl_fixedarray_object *intern; in PHP_METHOD() local
600 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
601 RETURN_LONG(intern->array.size); in PHP_METHOD()
606 spl_fixedarray_object *intern; in PHP_METHOD() local
612 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
614 if (!spl_fixedarray_empty(&intern->array)) { in PHP_METHOD()
616 for (zend_long i = 0; i < intern->array.size; i++) { in PHP_METHOD()
617 zend_hash_index_update(Z_ARRVAL_P(return_value), i, &intern->array.elements[i]); in PHP_METHOD()
618 Z_TRY_ADDREF(intern->array.elements[i]); in PHP_METHOD()
629 spl_fixedarray_object *intern; in PHP_METHOD() local
683 intern = Z_SPLFIXEDARRAY_P(return_value); in PHP_METHOD()
684 intern->array = array; in PHP_METHOD()
690 spl_fixedarray_object *intern; in PHP_METHOD() local
696 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
697 RETURN_LONG(intern->array.size); in PHP_METHOD()
703 spl_fixedarray_object *intern; in PHP_METHOD() local
715 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
717 spl_fixedarray_resize(&intern->array, size); in PHP_METHOD()
725 spl_fixedarray_object *intern; in PHP_METHOD() local
731 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
733 RETURN_BOOL(spl_fixedarray_object_has_dimension_helper(intern, zindex, 0)); in PHP_METHOD()
740 spl_fixedarray_object *intern; in PHP_METHOD() local
746 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
747 value = spl_fixedarray_object_read_dimension_helper(intern, zindex); in PHP_METHOD()
760 spl_fixedarray_object *intern; in PHP_METHOD() local
766 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
767 spl_fixedarray_object_write_dimension_helper(intern, zindex, value); in PHP_METHOD()
775 spl_fixedarray_object *intern; in PHP_METHOD() local
781 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
782 spl_fixedarray_object_unset_dimension_helper(intern, zindex); in PHP_METHOD()
868 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in spl_fixedarray_get_iterator()
869 iterator->intern.funcs = &spl_fixedarray_it_funcs; in spl_fixedarray_get_iterator()
871 return &iterator->intern; in spl_fixedarray_get_iterator()