Lines Matching refs:offset

257 static zend_result get_hash_key(spl_hash_key *key, spl_array_object *intern, zval *offset)  in get_hash_key()  argument
261 switch (Z_TYPE_P(offset)) { in get_hash_key()
266 key->key = Z_STR_P(offset); in get_hash_key()
273 zend_use_resource_as_offset(offset); in get_hash_key()
275 key->h = Z_RES_P(offset)->handle; in get_hash_key()
279 key->h = zend_dval_to_lval_safe(Z_DVAL_P(offset)); in get_hash_key()
291 key->h = Z_LVAL_P(offset); in get_hash_key()
294 ZVAL_DEREF(offset); in get_hash_key()
308 zval *offset, int type) /* {{{ */ in spl_array_get_dimension_ptr() argument
314 if (!offset || Z_ISUNDEF_P(offset) || !ht) { in spl_array_get_dimension_ptr()
323 if (get_hash_key(&key, intern, offset) == FAILURE) { in spl_array_get_dimension_ptr()
324 zend_illegal_container_offset(ce_name, offset, type); in spl_array_get_dimension_ptr()
396 static int spl_array_has_dimension(zend_object *object, zval *offset, int check_empty);
398 static zval *spl_array_read_dimension_ex(int check_inherited, zend_object *object, zval *offset, in… in spl_array_read_dimension_ex() argument
406 if (!spl_array_has_dimension(object, offset, 0)) { in spl_array_read_dimension_ex()
413 if (!offset) { in spl_array_read_dimension_ex()
415 offset = &tmp; in spl_array_read_dimension_ex()
417 …d_call_method_with_1_params(object, object->ce, &intern->fptr_offset_get, "offsetGet", rv, offset); in spl_array_read_dimension_ex()
426 ret = spl_array_get_dimension_ptr(check_inherited, intern, object->ce->name, offset, type); in spl_array_read_dimension_ex()
442 static zval *spl_array_read_dimension(zend_object *object, zval *offset, int type, zval *rv) /* {{{… in spl_array_read_dimension() argument
444 return spl_array_read_dimension_ex(1, object, offset, type, rv); in spl_array_read_dimension()
463 static void spl_array_write_dimension_ex(int check_inherited, zend_object *object, zval *offset, zv… in spl_array_write_dimension_ex() argument
472 if (!offset) { in spl_array_write_dimension_ex()
474 offset = &tmp; in spl_array_write_dimension_ex()
476 …thod_with_2_params(object, object->ce, &intern->fptr_offset_set, "offsetSet", NULL, offset, value); in spl_array_write_dimension_ex()
488 if (!offset || Z_TYPE_P(offset) == IS_NULL) { in spl_array_write_dimension_ex()
499 if (get_hash_key(&key, intern, offset) == FAILURE) { in spl_array_write_dimension_ex()
500 zend_illegal_container_offset(object->ce->name, offset, BP_VAR_W); in spl_array_write_dimension_ex()
519 static void spl_array_write_dimension(zend_object *object, zval *offset, zval *value) /* {{{ */ in spl_array_write_dimension() argument
521 spl_array_write_dimension_ex(1, object, offset, value); in spl_array_write_dimension()
524 static void spl_array_unset_dimension_ex(int check_inherited, zend_object *object, zval *offset) /*… in spl_array_unset_dimension_ex() argument
531 …ll_method_with_1_params(object, object->ce, &intern->fptr_offset_del, "offsetUnset", NULL, offset); in spl_array_unset_dimension_ex()
540 if (get_hash_key(&key, intern, offset) == FAILURE) { in spl_array_unset_dimension_ex()
541 zend_illegal_container_offset(object->ce->name, offset, BP_VAR_UNSET); in spl_array_unset_dimension_ex()
576 static void spl_array_unset_dimension(zend_object *object, zval *offset) /* {{{ */ in spl_array_unset_dimension() argument
578 spl_array_unset_dimension_ex(1, object, offset); in spl_array_unset_dimension()
584 static bool spl_array_has_dimension_ex(bool check_inherited, zend_object *object, zval *offset, int… in spl_array_has_dimension_ex() argument
590 …ll_method_with_1_params(object, object->ce, &intern->fptr_offset_has, "offsetExists", &rv, offset); in spl_array_has_dimension_ex()
602 value = spl_array_read_dimension_ex(1, object, offset, BP_VAR_R, &rv); in spl_array_has_dimension_ex()
610 if (get_hash_key(&key, intern, offset) == FAILURE) { in spl_array_has_dimension_ex()
611 zend_illegal_container_offset(object->ce->name, offset, BP_VAR_IS); in spl_array_has_dimension_ex()
633 value = spl_array_read_dimension_ex(1, object, offset, BP_VAR_R, &rv); in spl_array_has_dimension_ex()
647 static int spl_array_has_dimension(zend_object *object, zval *offset, int check_empty) /* {{{ */ in spl_array_has_dimension() argument
649 return spl_array_has_dimension_ex(/* check_inherited */ true, object, offset, check_empty); in spl_array_has_dimension()
1883 spl_handler_ArrayObject.offset = XtOffsetOf(spl_array_object, std); in PHP_MINIT_FUNCTION()