Lines Matching refs:intern

54 	zend_object_iterator intern;  member
214 spl_fixedarray_object *intern = spl_fixed_array_from_obj(obj); in spl_fixedarray_object_get_gc() local
217 *table = intern->array.elements; in spl_fixedarray_object_get_gc()
218 *n = (int)intern->array.size; in spl_fixedarray_object_get_gc()
228 const spl_fixedarray_object *intern = spl_fixed_array_from_obj(obj); in spl_fixedarray_object_get_properties_for() local
235 const zend_long size = intern->array.size; in spl_fixedarray_object_get_properties_for()
239 zval *const elements = intern->array.elements; in spl_fixedarray_object_get_properties_for()
265 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_free_storage() local
266 spl_fixedarray_dtor(&intern->array); in spl_fixedarray_object_free_storage()
267 zend_object_std_dtor(&intern->std); in spl_fixedarray_object_free_storage()
272 spl_fixedarray_object *intern; in spl_fixedarray_object_new_ex() local
276 intern = zend_object_alloc(sizeof(spl_fixedarray_object), parent); in spl_fixedarray_object_new_ex()
278 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
279 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
283 spl_fixedarray_copy_ctor(&intern->array, &other->array); in spl_fixedarray_object_new_ex()
303 intern->fptr_count = fptr_count; in spl_fixedarray_object_new_ex()
306 return &intern->std; in spl_fixedarray_object_new_ex()
355 static zval *spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_read_dimension_helper() argument
371 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_read_dimension_helper()
375 return &intern->array.elements[index]; in spl_fixedarray_object_read_dimension_helper()
400 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_read_dimension() local
401 return spl_fixedarray_object_read_dimension_helper(intern, offset); in spl_fixedarray_object_read_dimension()
404 static void spl_fixedarray_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_write_dimension_helper() argument
419 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_write_dimension_helper()
424 zval *ptr = &(intern->array.elements[index]); in spl_fixedarray_object_write_dimension_helper()
445 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_write_dimension() local
446 spl_fixedarray_object_write_dimension_helper(intern, offset, value); in spl_fixedarray_object_write_dimension()
449 static void spl_fixedarray_object_unset_dimension_helper(spl_fixedarray_object *intern, zval *offse… in spl_fixedarray_object_unset_dimension_helper() argument
458 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_unset_dimension_helper()
463 ZVAL_COPY_VALUE(&garbage, &intern->array.elements[index]); in spl_fixedarray_object_unset_dimension_helper()
464 ZVAL_NULL(&intern->array.elements[index]); in spl_fixedarray_object_unset_dimension_helper()
476 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_unset_dimension() local
477 spl_fixedarray_object_unset_dimension_helper(intern, offset); in spl_fixedarray_object_unset_dimension()
480 static bool spl_fixedarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset,… in spl_fixedarray_object_has_dimension_helper() argument
489 if (index < 0 || index >= intern->array.size) { in spl_fixedarray_object_has_dimension_helper()
494 return zend_is_true(&intern->array.elements[index]); in spl_fixedarray_object_has_dimension_helper()
497 return Z_TYPE(intern->array.elements[index]) != IS_NULL; in spl_fixedarray_object_has_dimension_helper()
511 spl_fixedarray_object *intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_has_dimension() local
513 return spl_fixedarray_object_has_dimension_helper(intern, offset, check_empty); in spl_fixedarray_object_has_dimension()
518 spl_fixedarray_object *intern; in spl_fixedarray_object_count_elements() local
520 intern = spl_fixed_array_from_obj(object); in spl_fixedarray_object_count_elements()
521 if (UNEXPECTED(intern->fptr_count)) { in spl_fixedarray_object_count_elements()
523 zend_call_known_instance_method_with_0_params(intern->fptr_count, object, &rv); in spl_fixedarray_object_count_elements()
531 *count = intern->array.size; in spl_fixedarray_object_count_elements()
539 spl_fixedarray_object *intern; in PHP_METHOD() local
551 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
553 if (!spl_fixedarray_empty(&intern->array)) { in PHP_METHOD()
558 spl_fixedarray_init(&intern->array, size); in PHP_METHOD()
563 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
571 if (intern->array.size == 0) { in PHP_METHOD()
575 spl_fixedarray_init(&intern->array, size); in PHP_METHOD()
578 ZVAL_COPY(&intern->array.elements[index], data); in PHP_METHOD()
590 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
598 HashTable *ht = zend_std_get_properties(&intern->std); in PHP_METHOD()
600 array_init_size(return_value, intern->array.size + num_properties); in PHP_METHOD()
603 for (zend_long i = 0; i < intern->array.size; i++) { in PHP_METHOD()
604 current = &intern->array.elements[i]; in PHP_METHOD()
623 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
633 if (intern->array.size == 0) { in PHP_METHOD()
635 spl_fixedarray_init_non_empty_struct(&intern->array, size); in PHP_METHOD()
641 intern->array.size = 0; in PHP_METHOD()
644 ZVAL_COPY(&intern->array.elements[intern->array.size], elem); in PHP_METHOD()
645 intern->array.size++; in PHP_METHOD()
652 if (intern->array.size != size) { in PHP_METHOD()
653 if (intern->array.size) { in PHP_METHOD()
654 intern->array.elements = erealloc(intern->array.elements, sizeof(zval) * intern->array.size); in PHP_METHOD()
656 efree(intern->array.elements); in PHP_METHOD()
657 intern->array.elements = NULL; in PHP_METHOD()
661 object_properties_load(&intern->std, Z_ARRVAL(members_zv)); in PHP_METHOD()
669 spl_fixedarray_object *intern; in PHP_METHOD() local
675 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
676 RETURN_LONG(intern->array.size); in PHP_METHOD()
681 spl_fixedarray_object *intern; in PHP_METHOD() local
687 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
689 if (!spl_fixedarray_empty(&intern->array)) { in PHP_METHOD()
691 for (zend_long i = 0; i < intern->array.size; i++) { in PHP_METHOD()
692 zend_hash_index_update(Z_ARRVAL_P(return_value), i, &intern->array.elements[i]); in PHP_METHOD()
693 Z_TRY_ADDREF(intern->array.elements[i]); in PHP_METHOD()
704 spl_fixedarray_object *intern; in PHP_METHOD() local
758 intern = Z_SPLFIXEDARRAY_P(return_value); in PHP_METHOD()
759 intern->array = array; in PHP_METHOD()
765 spl_fixedarray_object *intern; in PHP_METHOD() local
771 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
772 RETURN_LONG(intern->array.size); in PHP_METHOD()
778 spl_fixedarray_object *intern; in PHP_METHOD() local
790 intern = Z_SPLFIXEDARRAY_P(object); in PHP_METHOD()
792 spl_fixedarray_resize(&intern->array, size); in PHP_METHOD()
800 spl_fixedarray_object *intern; in PHP_METHOD() local
806 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
808 RETURN_BOOL(spl_fixedarray_object_has_dimension_helper(intern, zindex, 0)); in PHP_METHOD()
815 spl_fixedarray_object *intern; in PHP_METHOD() local
821 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
822 value = spl_fixedarray_object_read_dimension_helper(intern, zindex); in PHP_METHOD()
835 spl_fixedarray_object *intern; in PHP_METHOD() local
841 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
842 spl_fixedarray_object_write_dimension_helper(intern, zindex, value); in PHP_METHOD()
850 spl_fixedarray_object *intern; in PHP_METHOD() local
856 intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD()
857 spl_fixedarray_object_unset_dimension_helper(intern, zindex); in PHP_METHOD()
875 spl_fixedarray_object *intern = Z_SPLFIXEDARRAY_P(ZEND_THIS); in PHP_METHOD() local
876 array_init_size(return_value, intern->array.size); in PHP_METHOD()
877 for (zend_long i = 0; i < intern->array.size; i++) { in PHP_METHOD()
878 zend_hash_next_index_insert_new(Z_ARR_P(return_value), &intern->array.elements[i]); in PHP_METHOD()
879 Z_TRY_ADDREF(intern->array.elements[i]); in PHP_METHOD()
955 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in spl_fixedarray_get_iterator()
956 iterator->intern.funcs = &spl_fixedarray_it_funcs; in spl_fixedarray_get_iterator()
958 return &iterator->intern; in spl_fixedarray_get_iterator()