Lines Matching refs:dim

1532 static zend_never_inline void zend_assign_to_object_dim(zend_object *obj, zval *dim, zval *value OP…  in zend_assign_to_object_dim()  argument
1534 obj->handlers->write_dimension(obj, dim, value); in zend_assign_to_object_dim()
1638 static zend_never_inline zend_long zend_check_string_offset(zval *dim, int type EXECUTE_DATA_DC) in zend_check_string_offset() argument
1643 switch(Z_TYPE_P(dim)) { in zend_check_string_offset()
1645 return Z_LVAL_P(dim); in zend_check_string_offset()
1650 if (IS_LONG == is_numeric_string_ex(Z_STRVAL_P(dim), Z_STRLEN_P(dim), &offset, NULL, in zend_check_string_offset()
1653 zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim)); in zend_check_string_offset()
1657 zend_illegal_string_offset(dim, type); in zend_check_string_offset()
1670 dim = Z_REFVAL_P(dim); in zend_check_string_offset()
1673 zend_illegal_string_offset(dim, type); in zend_check_string_offset()
1677 return zval_get_long_func(dim, /* is_strict */ false); in zend_check_string_offset()
1740 static zend_never_inline void zend_assign_to_string_offset(zval *str, zval *dim, zval *value OPLINE… in zend_assign_to_string_offset() argument
1759 if (EXPECTED(Z_TYPE_P(dim) == IS_LONG)) { in zend_assign_to_string_offset()
1760 offset = Z_LVAL_P(dim); in zend_assign_to_string_offset()
1765 offset = zend_check_string_offset(dim, BP_VAR_W EXECUTE_DATA_CC); in zend_assign_to_string_offset()
2299 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_use_resource_as_offset(const zval *dim) in zend_use_resource_as_offset() argument
2303 Z_RES_HANDLE_P(dim), Z_RES_HANDLE_P(dim)); in zend_use_resource_as_offset()
2319 static ZEND_COLD void zend_binary_assign_op_dim_slow(zval *container, zval *dim OPLINE_DC EXECUTE_D… in zend_binary_assign_op_dim_slow()
2325 zend_check_string_offset(dim, BP_VAR_RW EXECUTE_DATA_CC); in zend_binary_assign_op_dim_slow()
2333 static zend_never_inline uint8_t slow_index_convert(HashTable *ht, const zval *dim, zend_value *val… in slow_index_convert() argument
2335 switch (Z_TYPE_P(dim)) { in slow_index_convert()
2356 value->lval = zend_dval_to_lval(Z_DVAL_P(dim)); in slow_index_convert()
2357 if (!zend_is_long_compatible(Z_DVAL_P(dim), value->lval)) { in slow_index_convert()
2363 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in slow_index_convert()
2379 zend_use_resource_as_offset(dim); in slow_index_convert()
2387 value->lval = Z_RES_HANDLE_P(dim); in slow_index_convert()
2396 zend_illegal_array_offset_access(dim); in slow_index_convert()
2401 static zend_never_inline uint8_t slow_index_convert_w(HashTable *ht, const zval *dim, zend_value *v… in slow_index_convert_w() argument
2403 switch (Z_TYPE_P(dim)) { in slow_index_convert_w()
2426 value->lval = zend_dval_to_lval(Z_DVAL_P(dim)); in slow_index_convert_w()
2427 if (!zend_is_long_compatible(Z_DVAL_P(dim), value->lval)) { in slow_index_convert_w()
2433 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in slow_index_convert_w()
2451 zend_use_resource_as_offset(dim); in slow_index_convert_w()
2461 value->lval = Z_RES_HANDLE_P(dim); in slow_index_convert_w()
2470 zend_illegal_array_offset_access(dim); in slow_index_convert_w()
2475 static zend_always_inline zval *zend_fetch_dimension_address_inner(HashTable *ht, const zval *dim, … in zend_fetch_dimension_address_inner() argument
2482 if (EXPECTED(Z_TYPE_P(dim) == IS_LONG)) { in zend_fetch_dimension_address_inner()
2483 hval = Z_LVAL_P(dim); in zend_fetch_dimension_address_inner()
2504 } else if (EXPECTED(Z_TYPE_P(dim) == IS_STRING)) { in zend_fetch_dimension_address_inner()
2505 offset_key = Z_STR_P(dim); in zend_fetch_dimension_address_inner()
2531 } else if (EXPECTED(Z_TYPE_P(dim) == IS_REFERENCE)) { in zend_fetch_dimension_address_inner()
2532 dim = Z_REFVAL_P(dim); in zend_fetch_dimension_address_inner()
2539 t = slow_index_convert(ht, dim, &val EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner()
2541 t = slow_index_convert_w(ht, dim, &val EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner()
2557 … ZEND_FASTCALL zend_fetch_dimension_address_inner_W(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_W()
2559 return zend_fetch_dimension_address_inner(ht, dim, IS_TMP_VAR, BP_VAR_W EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_W()
2562 …FASTCALL zend_fetch_dimension_address_inner_W_CONST(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_W_CONST()
2564 return zend_fetch_dimension_address_inner(ht, dim, IS_CONST, BP_VAR_W EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_W_CONST()
2567 …ZEND_FASTCALL zend_fetch_dimension_address_inner_RW(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_RW()
2569 return zend_fetch_dimension_address_inner(ht, dim, IS_TMP_VAR, BP_VAR_RW EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_RW()
2572 …ASTCALL zend_fetch_dimension_address_inner_RW_CONST(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_RW_CONST()
2574 return zend_fetch_dimension_address_inner(ht, dim, IS_CONST, BP_VAR_RW EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_RW_CONST()
2577 …ine void zend_fetch_dimension_address(zval *result, zval *container, zval *dim, int dim_type, int … in zend_fetch_dimension_address() argument
2585 if (dim == NULL) { in zend_fetch_dimension_address()
2593 …retval = zend_fetch_dimension_address_inner(Z_ARRVAL_P(container), dim, dim_type, type EXECUTE_DAT… in zend_fetch_dimension_address()
2624 if (dim == NULL) { in zend_fetch_dimension_address()
2627 zend_check_string_offset(dim, type EXECUTE_DATA_CC); in zend_fetch_dimension_address()
2634 if (ZEND_CONST_COND(dim_type == IS_CV, dim != NULL) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address()
2635 dim = ZVAL_UNDEFINED_OP2(); in zend_fetch_dimension_address()
2636 } else if (dim_type == IS_CONST && Z_EXTRA_P(dim) == ZEND_EXTRA_VALUE) { in zend_fetch_dimension_address()
2637 dim++; in zend_fetch_dimension_address()
2639 retval = obj->handlers->read_dimension(obj, dim, type, result); in zend_fetch_dimension_address()
2694 if (ZEND_CONST_COND(dim_type == IS_CV, dim != NULL) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address()
2711 …id ZEND_FASTCALL zend_fetch_dimension_address_W(zval *container_ptr, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_W() argument
2714 zend_fetch_dimension_address(result, container_ptr, dim, dim_type, BP_VAR_W EXECUTE_DATA_CC); in zend_fetch_dimension_address_W()
2717 …d ZEND_FASTCALL zend_fetch_dimension_address_RW(zval *container_ptr, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_RW() argument
2720 zend_fetch_dimension_address(result, container_ptr, dim, dim_type, BP_VAR_RW EXECUTE_DATA_CC); in zend_fetch_dimension_address_RW()
2723 …END_FASTCALL zend_fetch_dimension_address_UNSET(zval *container_ptr, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_UNSET() argument
2726 zend_fetch_dimension_address(result, container_ptr, dim, dim_type, BP_VAR_UNSET EXECUTE_DATA_CC); in zend_fetch_dimension_address_UNSET()
2729 …oid zend_fetch_dimension_address_read(zval *result, zval *container, zval *dim, int dim_type, int … in zend_fetch_dimension_address_read() argument
2736 …retval = zend_fetch_dimension_address_inner(Z_ARRVAL_P(container), dim, dim_type, type EXECUTE_DAT… in zend_fetch_dimension_address_read()
2751 if (UNEXPECTED(Z_TYPE_P(dim) != IS_LONG)) { in zend_fetch_dimension_address_read()
2752 switch (Z_TYPE_P(dim)) { in zend_fetch_dimension_address_read()
2757 if (IS_LONG == is_numeric_string_ex(Z_STRVAL_P(dim), Z_STRLEN_P(dim), &offset, in zend_fetch_dimension_address_read()
2760 zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim)); in zend_fetch_dimension_address_read()
2768 zend_illegal_string_offset(dim, BP_VAR_R); in zend_fetch_dimension_address_read()
2804 dim = Z_REFVAL_P(dim); in zend_fetch_dimension_address_read()
2807 zend_illegal_string_offset(dim, BP_VAR_R); in zend_fetch_dimension_address_read()
2812 offset = zval_get_long_func(dim, /* is_strict */ false); in zend_fetch_dimension_address_read()
2814 offset = Z_LVAL_P(dim); in zend_fetch_dimension_address_read()
2839 if (ZEND_CONST_COND(dim_type == IS_CV, 1) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address_read()
2840 dim = ZVAL_UNDEFINED_OP2(); in zend_fetch_dimension_address_read()
2842 if (dim_type == IS_CONST && Z_EXTRA_P(dim) == ZEND_EXTRA_VALUE) { in zend_fetch_dimension_address_read()
2843 dim++; in zend_fetch_dimension_address_read()
2845 retval = obj->handlers->read_dimension(obj, dim, type, result); in zend_fetch_dimension_address_read()
2864 if (ZEND_CONST_COND(dim_type == IS_CV, 1) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address_read()
2875 …d ZEND_FASTCALL zend_fetch_dimension_address_read_R(zval *container, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_read_R() argument
2878 …zend_fetch_dimension_address_read(result, container, dim, dim_type, BP_VAR_R, 0, 0 EXECUTE_DATA_CC… in zend_fetch_dimension_address_read_R()
2881 static zend_never_inline void zend_fetch_dimension_address_read_R_slow(zval *container, zval *dim O… in zend_fetch_dimension_address_read_R_slow()
2884 zend_fetch_dimension_address_read(result, container, dim, IS_CV, BP_VAR_R, 0, 1 EXECUTE_DATA_CC); in zend_fetch_dimension_address_read_R_slow()
2887 … ZEND_FASTCALL zend_fetch_dimension_address_read_IS(zval *container, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_read_IS() argument
2890 …zend_fetch_dimension_address_read(result, container, dim, dim_type, BP_VAR_IS, 0, 0 EXECUTE_DATA_C… in zend_fetch_dimension_address_read_IS()
2893 …d ZEND_FASTCALL zend_fetch_dimension_address_LIST_r(zval *container, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_LIST_r() argument
2896 …zend_fetch_dimension_address_read(result, container, dim, dim_type, BP_VAR_R, 1, 0 EXECUTE_DATA_CC… in zend_fetch_dimension_address_LIST_r()
2899 ZEND_API void zend_fetch_dimension_const(zval *result, zval *container, zval *dim, int type) in zend_fetch_dimension_const() argument
2901 …zend_fetch_dimension_address_read(result, container, dim, IS_TMP_VAR, type, 0, 0 NO_EXECUTE_DATA_C… in zend_fetch_dimension_const()