Lines Matching refs:elements
50 zval *elements; member
82 if (array->elements) { in spl_fixedarray_empty()
93 array->elements = NULL; in spl_fixedarray_default_ctor()
101 zval *begin = array->elements + from, *end = array->elements + to; in spl_fixedarray_init_elems()
111 array->elements = size ? safe_emalloc(size, sizeof(zval), 0) : NULL; in spl_fixedarray_init_non_empty_struct()
135 zval *to = &array->elements[offset]; in spl_fixedarray_copy_range()
146 zval *begin = from->elements, *end = from->elements + size; in spl_fixedarray_copy_ctor()
157 zval *begin = array->elements + from, *end = array->elements + to; in spl_fixedarray_dtor_range()
169 zval *begin = array->elements, *end = array->elements + array->size; in spl_fixedarray_dtor()
170 array->elements = NULL; in spl_fixedarray_dtor()
204 array->elements = NULL; in spl_fixedarray_resize()
207 array->elements = safe_erealloc(array->elements, size, sizeof(zval), 0); in spl_fixedarray_resize()
213 array->elements = erealloc(array->elements, sizeof(zval) * size); in spl_fixedarray_resize()
229 *table = intern->array.elements; in spl_fixedarray_object_get_gc()
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()
393 return &intern->array.elements[index]; in spl_fixedarray_object_read_dimension_helper()
447 zval *ptr = &(intern->array.elements[index]); in spl_fixedarray_object_write_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()
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()
603 ZVAL_COPY(&intern->array.elements[index], data); in PHP_METHOD()
629 current = &intern->array.elements[i]; in PHP_METHOD()
669 ZVAL_COPY(&intern->array.elements[intern->array.size], elem); 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()
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()
764 ZVAL_COPY_DEREF(&array.elements[num_index], element); in PHP_METHOD()
774 ZVAL_COPY_DEREF(&array.elements[i], element); 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()