Lines Matching refs:intern

64 	zend_object_iterator intern;  member
226 spl_fixedarray_object *intern = spl_fixed_array_from_obj(obj); in spl_fixedarray_object_get_gc() local
229 *table = intern->array.elements; in spl_fixedarray_object_get_gc()
230 *n = (int)intern->array.size; in spl_fixedarray_object_get_gc()
237 spl_fixedarray_object *intern = spl_fixed_array_from_obj(obj); in spl_fixedarray_object_get_properties() local
240 if (!spl_fixedarray_empty(&intern->array)) { in spl_fixedarray_object_get_properties()
251 if (!intern->array.should_rebuild_properties) { in spl_fixedarray_object_get_properties()
255 intern->array.should_rebuild_properties = false; in spl_fixedarray_object_get_properties()
260 intern->std.properties = zend_array_dup(ht); in spl_fixedarray_object_get_properties()
263 for (zend_long i = 0; i < intern->array.size; i++) { in spl_fixedarray_object_get_properties()
264 zend_hash_index_update(ht, i, &intern->array.elements[i]); in spl_fixedarray_object_get_properties()
265 Z_TRY_ADDREF(intern->array.elements[i]); in spl_fixedarray_object_get_properties()
267 if (j > intern->array.size) { in spl_fixedarray_object_get_properties()
268 for (zend_long i = intern->array.size; i < j; ++i) { in spl_fixedarray_object_get_properties()
283 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_free_storage() local
284 spl_fixedarray_dtor(&intern->array); in spl_fixedarray_object_free_storage()
285 zend_object_std_dtor(&intern->std); in spl_fixedarray_object_free_storage()
290 spl_fixedarray_object *intern; in spl_fixedarray_object_new_ex() local
294 intern = zend_object_alloc(sizeof(spl_fixedarray_object), parent); in spl_fixedarray_object_new_ex()
296 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
297 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
301 spl_fixedarray_copy_ctor(&intern->array, &other->array); in spl_fixedarray_object_new_ex()
306 intern->std.handlers = &spl_handler_SplFixedArray; in spl_fixedarray_object_new_ex()
321 intern->fptr_count = fptr_count; in spl_fixedarray_object_new_ex()
324 return &intern->std; in spl_fixedarray_object_new_ex()
372 static zval *spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_read_dimension_helper() argument
388 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_read_dimension_helper()
393 return &intern->array.elements[index]; in spl_fixedarray_object_read_dimension_helper()
418 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_read_dimension() local
420 intern->array.should_rebuild_properties = true; in spl_fixedarray_object_read_dimension()
422 return spl_fixedarray_object_read_dimension_helper(intern, offset); in spl_fixedarray_object_read_dimension()
425 static void spl_fixedarray_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_write_dimension_helper() argument
440 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_write_dimension_helper()
445 intern->array.should_rebuild_properties = true; in spl_fixedarray_object_write_dimension_helper()
447 zval *ptr = &(intern->array.elements[index]); in spl_fixedarray_object_write_dimension_helper()
468 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_write_dimension() local
469 spl_fixedarray_object_write_dimension_helper(intern, offset, value); in spl_fixedarray_object_write_dimension()
472 static void spl_fixedarray_object_unset_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_unset_dimension_helper() argument
481 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_unset_dimension_helper()
486 intern->array.should_rebuild_properties = true; in spl_fixedarray_object_unset_dimension_helper()
488 ZVAL_COPY_VALUE(&garbage, &intern->array.elements[index]); in spl_fixedarray_object_unset_dimension_helper()
489 ZVAL_NULL(&intern->array.elements[index]); in spl_fixedarray_object_unset_dimension_helper()
501 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_unset_dimension() local
502 spl_fixedarray_object_unset_dimension_helper(intern, offset); in spl_fixedarray_object_unset_dimension()
505 static bool spl_fixedarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset,… in spl_fixedarray_object_has_dimension_helper() argument
514 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_has_dimension_helper()
519 return zend_is_true(&intern->array.elements[index]); in spl_fixedarray_object_has_dimension_helper()
522 return Z_TYPE(intern->array.elements[index]) != IS_NULL; in spl_fixedarray_object_has_dimension_helper()
536 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_has_dimension() local
538 return spl_fixedarray_object_has_dimension_helper(intern, offset, check_empty); in spl_fixedarray_object_has_dimension()
543 spl_fixedarray_object *intern; in spl_fixedarray_object_count_elements() local
545 intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_count_elements()
546 if (UNEXPECTED(intern->fptr_count)) { in spl_fixedarray_object_count_elements()
548 zend_call_known_instance_method_with_0_params(intern->fptr_count, object, &rv); in spl_fixedarray_object_count_elements()
556 *count = intern->array.size; in spl_fixedarray_object_count_elements()
564 spl_fixedarray_object *intern; in PHP_METHOD() local
576 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
578 if (!spl_fixedarray_empty(&intern->array)) { in PHP_METHOD()
583 spl_fixedarray_init(&intern->array, size); in PHP_METHOD()
588 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
596 if (intern->array.size == 0) { in PHP_METHOD()
600 spl_fixedarray_init(&intern->array, size); in PHP_METHOD()
603 ZVAL_COPY(&intern->array.elements[index], data); in PHP_METHOD()
615 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
623 HashTable *ht = zend_std_get_properties(&intern->std); in PHP_METHOD()
625 array_init_size(return_value, intern->array.size + num_properties); in PHP_METHOD()
628 for (zend_long i = 0; i < intern->array.size; i++) { in PHP_METHOD()
629 current = &intern->array.elements[i]; in PHP_METHOD()
648 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
658 if (intern->array.size == 0) { in PHP_METHOD()
660 spl_fixedarray_init_non_empty_struct(&intern->array, size); in PHP_METHOD()
666 intern->array.size = 0; in PHP_METHOD()
669 ZVAL_COPY(&intern->array.elements[intern->array.size], elem); in PHP_METHOD()
670 intern->array.size++; in PHP_METHOD()
677 if (intern->array.size != size) { in PHP_METHOD()
678 if (intern->array.size) { in PHP_METHOD()
679 intern->array.elements = erealloc(intern->array.elements, sizeof(zval) * intern->array.size); in PHP_METHOD()
681 efree(intern->array.elements); in PHP_METHOD()
682 intern->array.elements = NULL; in PHP_METHOD()
686 object_properties_load(&intern->std, Z_ARRVAL(members_zv)); in PHP_METHOD()
694 spl_fixedarray_object *intern; in PHP_METHOD() local
700 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
701 RETURN_LONG(intern->array.size); in PHP_METHOD()
706 spl_fixedarray_object *intern; in PHP_METHOD() local
712 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
714 if (!spl_fixedarray_empty(&intern->array)) { in PHP_METHOD()
716 for (zend_long i = 0; i < intern->array.size; i++) { in PHP_METHOD()
717 zend_hash_index_update(Z_ARRVAL_P(return_value), i, &intern->array.elements[i]); in PHP_METHOD()
718 Z_TRY_ADDREF(intern->array.elements[i]); in PHP_METHOD()
729 spl_fixedarray_object *intern; in PHP_METHOD() local
783 intern = Z_SPLFIXEDARRAY_P(return_value); in PHP_METHOD()
784 intern->array = array; in PHP_METHOD()
790 spl_fixedarray_object *intern; in PHP_METHOD() local
796 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
797 RETURN_LONG(intern->array.size); in PHP_METHOD()
803 spl_fixedarray_object *intern; in PHP_METHOD() local
815 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
817 spl_fixedarray_resize(&intern->array, size); in PHP_METHOD()
825 spl_fixedarray_object *intern; in PHP_METHOD() local
831 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
833 RETURN_BOOL(spl_fixedarray_object_has_dimension_helper(intern, zindex, 0)); in PHP_METHOD()
840 spl_fixedarray_object *intern; in PHP_METHOD() local
846 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
847 value = spl_fixedarray_object_read_dimension_helper(intern, zindex); in PHP_METHOD()
860 spl_fixedarray_object *intern; in PHP_METHOD() local
866 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
867 spl_fixedarray_object_write_dimension_helper(intern, zindex, value); in PHP_METHOD()
875 spl_fixedarray_object *intern; in PHP_METHOD() local
881 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
882 spl_fixedarray_object_unset_dimension_helper(intern, zindex); in PHP_METHOD()
900 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
901 array_init_size(return_value, intern->array.size); in PHP_METHOD()
902 for (zend_long i = 0; i < intern->array.size; i++) { in PHP_METHOD()
903 zend_hash_next_index_insert_new(Z_ARR_P(return_value), &intern->array.elements[i]); in PHP_METHOD()
904 Z_TRY_ADDREF(intern->array.elements[i]); in PHP_METHOD()
980 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in spl_fixedarray_get_iterator()
981 iterator->intern.funcs = &spl_fixedarray_it_funcs; in spl_fixedarray_get_iterator()
983 return &iterator->intern; in spl_fixedarray_get_iterator()