Lines Matching refs:dim
1573 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
1575 obj->handlers->write_dimension(obj, dim, value); in zend_assign_to_object_dim()
1727 static zend_never_inline zend_long zend_check_string_offset(zval *dim, int type EXECUTE_DATA_DC) in zend_check_string_offset() argument
1732 switch(Z_TYPE_P(dim)) { in zend_check_string_offset()
1734 return Z_LVAL_P(dim); in zend_check_string_offset()
1739 if (IS_LONG == is_numeric_string_ex(Z_STRVAL_P(dim), Z_STRLEN_P(dim), &offset, NULL, in zend_check_string_offset()
1742 zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim)); in zend_check_string_offset()
1746 zend_illegal_string_offset(dim, type); in zend_check_string_offset()
1759 dim = Z_REFVAL_P(dim); in zend_check_string_offset()
1762 zend_illegal_string_offset(dim, type); in zend_check_string_offset()
1766 return zval_get_long_func(dim, /* is_strict */ false); in zend_check_string_offset()
1931 static zend_never_inline void zend_assign_to_string_offset(zval *str, zval *dim, zval *value OPLINE… in zend_assign_to_string_offset() argument
1950 if (EXPECTED(Z_TYPE_P(dim) == IS_LONG)) { in zend_assign_to_string_offset()
1951 offset = Z_LVAL_P(dim); in zend_assign_to_string_offset()
1956 offset = zend_check_string_offset(dim, BP_VAR_W EXECUTE_DATA_CC); in zend_assign_to_string_offset()
2490 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_use_resource_as_offset(const zval *dim) in zend_use_resource_as_offset() argument
2494 Z_RES_HANDLE_P(dim), Z_RES_HANDLE_P(dim)); in zend_use_resource_as_offset()
2515 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()
2521 zend_check_string_offset(dim, BP_VAR_RW EXECUTE_DATA_CC); in zend_binary_assign_op_dim_slow()
2529 static zend_never_inline uint8_t slow_index_convert(HashTable *ht, const zval *dim, zend_value *val… in slow_index_convert() argument
2531 switch (Z_TYPE_P(dim)) { in slow_index_convert()
2552 value->lval = zend_dval_to_lval(Z_DVAL_P(dim)); in slow_index_convert()
2553 if (!zend_is_long_compatible(Z_DVAL_P(dim), value->lval)) { in slow_index_convert()
2559 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in slow_index_convert()
2575 zend_use_resource_as_offset(dim); in slow_index_convert()
2583 value->lval = Z_RES_HANDLE_P(dim); in slow_index_convert()
2592 zend_illegal_array_offset_access(dim); in slow_index_convert()
2597 static zend_never_inline uint8_t slow_index_convert_w(HashTable *ht, const zval *dim, zend_value *v… in slow_index_convert_w() argument
2599 switch (Z_TYPE_P(dim)) { in slow_index_convert_w()
2622 value->lval = zend_dval_to_lval(Z_DVAL_P(dim)); in slow_index_convert_w()
2623 if (!zend_is_long_compatible(Z_DVAL_P(dim), value->lval)) { in slow_index_convert_w()
2629 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in slow_index_convert_w()
2647 zend_use_resource_as_offset(dim); in slow_index_convert_w()
2657 value->lval = Z_RES_HANDLE_P(dim); in slow_index_convert_w()
2666 zend_illegal_array_offset_access(dim); in slow_index_convert_w()
2671 static zend_always_inline zval *zend_fetch_dimension_address_inner(HashTable *ht, const zval *dim, … in zend_fetch_dimension_address_inner() argument
2678 if (EXPECTED(Z_TYPE_P(dim) == IS_LONG)) { in zend_fetch_dimension_address_inner()
2679 hval = Z_LVAL_P(dim); in zend_fetch_dimension_address_inner()
2700 } else if (EXPECTED(Z_TYPE_P(dim) == IS_STRING)) { in zend_fetch_dimension_address_inner()
2701 offset_key = Z_STR_P(dim); in zend_fetch_dimension_address_inner()
2727 } else if (EXPECTED(Z_TYPE_P(dim) == IS_REFERENCE)) { in zend_fetch_dimension_address_inner()
2728 dim = Z_REFVAL_P(dim); in zend_fetch_dimension_address_inner()
2735 t = slow_index_convert(ht, dim, &val EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner()
2737 t = slow_index_convert_w(ht, dim, &val EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner()
2753 … ZEND_FASTCALL zend_fetch_dimension_address_inner_W(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_W()
2755 return zend_fetch_dimension_address_inner(ht, dim, IS_TMP_VAR, BP_VAR_W EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_W()
2758 …FASTCALL zend_fetch_dimension_address_inner_W_CONST(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_W_CONST()
2760 return zend_fetch_dimension_address_inner(ht, dim, IS_CONST, BP_VAR_W EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_W_CONST()
2763 …ZEND_FASTCALL zend_fetch_dimension_address_inner_RW(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_RW()
2765 return zend_fetch_dimension_address_inner(ht, dim, IS_TMP_VAR, BP_VAR_RW EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_RW()
2768 …ASTCALL zend_fetch_dimension_address_inner_RW_CONST(HashTable *ht, const zval *dim EXECUTE_DATA_DC) in zend_fetch_dimension_address_inner_RW_CONST()
2770 return zend_fetch_dimension_address_inner(ht, dim, IS_CONST, BP_VAR_RW EXECUTE_DATA_CC); in zend_fetch_dimension_address_inner_RW_CONST()
2773 …ine void zend_fetch_dimension_address(zval *result, zval *container, zval *dim, int dim_type, int … in zend_fetch_dimension_address() argument
2781 if (dim == NULL) { in zend_fetch_dimension_address()
2789 …retval = zend_fetch_dimension_address_inner(Z_ARRVAL_P(container), dim, dim_type, type EXECUTE_DAT… in zend_fetch_dimension_address()
2820 if (dim == NULL) { in zend_fetch_dimension_address()
2823 zend_check_string_offset(dim, type EXECUTE_DATA_CC); in zend_fetch_dimension_address()
2830 if (ZEND_CONST_COND(dim_type == IS_CV, dim != NULL) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address()
2831 dim = ZVAL_UNDEFINED_OP2(); in zend_fetch_dimension_address()
2832 } else if (dim_type == IS_CONST && Z_EXTRA_P(dim) == ZEND_EXTRA_VALUE) { in zend_fetch_dimension_address()
2833 dim++; in zend_fetch_dimension_address()
2835 retval = obj->handlers->read_dimension(obj, dim, type, result); in zend_fetch_dimension_address()
2890 if (ZEND_CONST_COND(dim_type == IS_CV, dim != NULL) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address()
2907 …id ZEND_FASTCALL zend_fetch_dimension_address_W(zval *container_ptr, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_W() argument
2910 zend_fetch_dimension_address(result, container_ptr, dim, dim_type, BP_VAR_W EXECUTE_DATA_CC); in zend_fetch_dimension_address_W()
2913 …d ZEND_FASTCALL zend_fetch_dimension_address_RW(zval *container_ptr, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_RW() argument
2916 zend_fetch_dimension_address(result, container_ptr, dim, dim_type, BP_VAR_RW EXECUTE_DATA_CC); in zend_fetch_dimension_address_RW()
2919 …END_FASTCALL zend_fetch_dimension_address_UNSET(zval *container_ptr, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_UNSET() argument
2922 zend_fetch_dimension_address(result, container_ptr, dim, dim_type, BP_VAR_UNSET EXECUTE_DATA_CC); in zend_fetch_dimension_address_UNSET()
2925 …oid zend_fetch_dimension_address_read(zval *result, zval *container, zval *dim, int dim_type, int … in zend_fetch_dimension_address_read() argument
2932 …retval = zend_fetch_dimension_address_inner(Z_ARRVAL_P(container), dim, dim_type, type EXECUTE_DAT… in zend_fetch_dimension_address_read()
2947 if (UNEXPECTED(Z_TYPE_P(dim) != IS_LONG)) { in zend_fetch_dimension_address_read()
2948 switch (Z_TYPE_P(dim)) { in zend_fetch_dimension_address_read()
2953 if (IS_LONG == is_numeric_string_ex(Z_STRVAL_P(dim), Z_STRLEN_P(dim), &offset, in zend_fetch_dimension_address_read()
2956 zend_error(E_WARNING, "Illegal string offset \"%s\"", Z_STRVAL_P(dim)); in zend_fetch_dimension_address_read()
2964 zend_illegal_string_offset(dim, BP_VAR_R); in zend_fetch_dimension_address_read()
3000 dim = Z_REFVAL_P(dim); in zend_fetch_dimension_address_read()
3003 zend_illegal_string_offset(dim, BP_VAR_R); in zend_fetch_dimension_address_read()
3008 offset = zval_get_long_func(dim, /* is_strict */ false); in zend_fetch_dimension_address_read()
3010 offset = Z_LVAL_P(dim); in zend_fetch_dimension_address_read()
3035 if (ZEND_CONST_COND(dim_type == IS_CV, 1) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address_read()
3036 dim = ZVAL_UNDEFINED_OP2(); in zend_fetch_dimension_address_read()
3038 if (dim_type == IS_CONST && Z_EXTRA_P(dim) == ZEND_EXTRA_VALUE) { in zend_fetch_dimension_address_read()
3039 dim++; in zend_fetch_dimension_address_read()
3041 retval = obj->handlers->read_dimension(obj, dim, type, result); in zend_fetch_dimension_address_read()
3060 if (ZEND_CONST_COND(dim_type == IS_CV, 1) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address_read()
3071 …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
3074 …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()
3077 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()
3080 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()
3083 … ZEND_FASTCALL zend_fetch_dimension_address_read_IS(zval *container, zval *dim, int dim_type OPLIN… in zend_fetch_dimension_address_read_IS() argument
3086 …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()
3089 …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
3092 …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()
3095 ZEND_API void zend_fetch_dimension_const(zval *result, zval *container, zval *dim, int type) in zend_fetch_dimension_const() argument
3097 …zend_fetch_dimension_address_read(result, container, dim, IS_TMP_VAR, type, 0, 0 NO_EXECUTE_DATA_C… in zend_fetch_dimension_const()