mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Cleanup
This commit is contained in:
commit
53bcc2339c
4 changed files with 116 additions and 136 deletions
|
@ -658,7 +658,8 @@ static zend_never_inline ZEND_COLD void zend_throw_access_uninit_prop_by_ref_err
|
|||
zend_get_unmangled_property_name(prop->name));
|
||||
}
|
||||
|
||||
static zend_always_inline zend_property_info *i_zend_check_ref_stdClass_assignable(zend_reference *ref);
|
||||
static zend_never_inline zend_bool zend_verify_ref_stdClass_assignable(zend_reference *ref);
|
||||
static zend_never_inline zend_bool zend_verify_ref_array_assignable(zend_reference *ref);
|
||||
|
||||
/* this should modify object only if it's empty */
|
||||
static zend_never_inline ZEND_COLD zval* ZEND_FASTCALL make_real_object(zval *object, zval *property OPLINE_DC EXECUTE_DATA_DC)
|
||||
|
@ -697,10 +698,8 @@ static zend_never_inline ZEND_COLD zval* ZEND_FASTCALL make_real_object(zval *ob
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (ref) {
|
||||
zend_property_info *error_prop = i_zend_check_ref_stdClass_assignable(Z_REF_P(ref));
|
||||
if (error_prop) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "stdClass");
|
||||
if (ref && ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(ref))) {
|
||||
if (UNEXPECTED(!zend_verify_ref_stdClass_assignable(Z_REF_P(ref)))) {
|
||||
if (RETURN_VALUE_USED(opline)) {
|
||||
ZVAL_UNDEF(EX_VAR(opline->result.var));
|
||||
}
|
||||
|
@ -2169,9 +2168,7 @@ fetch_from_array:
|
|||
} else if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
|
||||
if (type != BP_VAR_UNSET) {
|
||||
if (ZEND_REF_HAS_TYPE_SOURCES(ref)) {
|
||||
zend_property_info *error_prop = zend_check_ref_array_assignable(ref);
|
||||
if (UNEXPECTED(error_prop != NULL)) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (UNEXPECTED(!zend_verify_ref_array_assignable(ref))) {
|
||||
ZVAL_ERROR(result);
|
||||
return;
|
||||
}
|
||||
|
@ -2599,36 +2596,30 @@ static zend_always_inline zend_bool check_type_stdClass_assignable(zend_type typ
|
|||
|
||||
/* Checks whether an array can be assigned to the reference. Returns conflicting property if
|
||||
* assignment is not possible, NULL otherwise. */
|
||||
static zend_always_inline zend_property_info *i_zend_check_ref_array_assignable(zend_reference *ref) {
|
||||
static zend_never_inline zend_bool zend_verify_ref_array_assignable(zend_reference *ref) {
|
||||
zend_property_info *prop;
|
||||
if (!ZEND_REF_HAS_TYPE_SOURCES(ref)) {
|
||||
return NULL;
|
||||
}
|
||||
ZEND_ASSERT(ZEND_REF_HAS_TYPE_SOURCES(ref));
|
||||
ZEND_REF_FOREACH_TYPE_SOURCES(ref, prop) {
|
||||
if (!check_type_array_assignable(prop->type)) {
|
||||
return prop;
|
||||
zend_throw_auto_init_in_ref_error(prop, "array");
|
||||
return 0;
|
||||
}
|
||||
} ZEND_REF_FOREACH_TYPE_SOURCES_END();
|
||||
return NULL;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Checks whether an stdClass can be assigned to the reference. Returns conflicting property if
|
||||
* assignment is not possible, NULL otherwise. */
|
||||
static zend_always_inline zend_property_info *i_zend_check_ref_stdClass_assignable(zend_reference *ref) {
|
||||
static zend_never_inline zend_bool zend_verify_ref_stdClass_assignable(zend_reference *ref) {
|
||||
zend_property_info *prop;
|
||||
if (!ZEND_REF_HAS_TYPE_SOURCES(ref)) {
|
||||
return NULL;
|
||||
}
|
||||
ZEND_ASSERT(ZEND_REF_HAS_TYPE_SOURCES(ref));
|
||||
ZEND_REF_FOREACH_TYPE_SOURCES(ref, prop) {
|
||||
if (!check_type_stdClass_assignable(prop->type)) {
|
||||
return prop;
|
||||
zend_throw_auto_init_in_ref_error(prop, "stdClass");
|
||||
return 0;
|
||||
}
|
||||
} ZEND_REF_FOREACH_TYPE_SOURCES_END();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ZEND_API zend_property_info* ZEND_FASTCALL zend_check_ref_array_assignable(zend_reference *ref) {
|
||||
return i_zend_check_ref_array_assignable(ref);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static zend_property_info *zend_object_fetch_property_type_info(
|
||||
|
@ -3083,7 +3074,8 @@ static zend_always_inline int i_zend_verify_type_assignable_zval(
|
|||
return -1;
|
||||
}
|
||||
|
||||
static zend_always_inline zend_bool i_zend_verify_ref_assignable_zval(zend_reference *ref, zval *zv, zend_bool strict) {
|
||||
ZEND_API zend_bool ZEND_FASTCALL zend_verify_ref_assignable_zval(zend_reference *ref, zval *zv, zend_bool strict)
|
||||
{
|
||||
zend_property_info *prop;
|
||||
|
||||
/* The value must satisfy each property type, and coerce to the same value for each property
|
||||
|
@ -3123,11 +3115,6 @@ static zend_always_inline zend_bool i_zend_verify_ref_assignable_zval(zend_refer
|
|||
return 1;
|
||||
}
|
||||
|
||||
ZEND_API zend_bool ZEND_FASTCALL zend_verify_ref_assignable_zval(zend_reference *ref, zval *zv, zend_bool strict)
|
||||
{
|
||||
return i_zend_verify_ref_assignable_zval(ref, zv, strict);
|
||||
}
|
||||
|
||||
ZEND_API zval* zend_assign_to_typed_ref(zval *variable_ptr, zval *value, zend_uchar value_type, zend_bool strict, zend_refcounted *ref)
|
||||
{
|
||||
zend_bool need_copy = ZEND_CONST_COND(value_type & (IS_CONST|IS_CV), 1) ||
|
||||
|
@ -4485,8 +4472,3 @@ ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode
|
|||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
ZEND_API int ZEND_FASTCALL zend_check_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zval *default_value, void **cache_slot)
|
||||
{
|
||||
return zend_verify_arg_type(zf, arg_num, arg, default_value, cache_slot);
|
||||
}
|
||||
|
|
|
@ -52,10 +52,8 @@ ZEND_API int zend_eval_stringl_ex(const char *str, size_t str_len, zval *retval_
|
|||
/* export zend_pass_function to allow comparisons against it */
|
||||
extern ZEND_API const zend_internal_function zend_pass_function;
|
||||
|
||||
ZEND_API int ZEND_FASTCALL zend_check_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zval *default_value, void **cache_slot);
|
||||
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_missing_arg_error(zend_execute_data *execute_data);
|
||||
|
||||
ZEND_API zend_property_info* ZEND_FASTCALL zend_check_ref_array_assignable(zend_reference *ref);
|
||||
ZEND_API zend_bool ZEND_FASTCALL zend_verify_ref_assignable_zval(zend_reference *ref, zval *zv, zend_bool strict);
|
||||
ZEND_API zend_bool ZEND_FASTCALL zend_verify_prop_assignable_by_ref(zend_property_info *prop_info, zval *orig_val, zend_bool strict);
|
||||
|
||||
|
|
|
@ -2589,9 +2589,9 @@ ZEND_VM_C_LABEL(try_assign_dim_array):
|
|||
FREE_OP_DATA();
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = GET_OP2_ZVAL_PTR(BP_VAR_R);
|
||||
FREE_UNFETCHED_OP_DATA();
|
||||
UNDEF_RESULT();
|
||||
|
|
|
@ -23068,9 +23068,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -23185,9 +23185,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -23302,9 +23302,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -23418,9 +23418,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -25674,9 +25674,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -25791,9 +25791,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -25908,9 +25908,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -26024,9 +26024,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -27320,9 +27320,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -27437,9 +27437,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -27554,9 +27554,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -27670,9 +27670,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -29801,9 +29801,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -29918,9 +29918,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -30035,9 +30035,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -30151,9 +30151,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -41893,9 +41893,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -42010,9 +42010,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -42127,9 +42127,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -42243,9 +42243,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = RT_CONSTANT(opline, opline->op2);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -45901,9 +45901,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -46018,9 +46018,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -46135,9 +46135,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -46251,9 +46251,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_var(opline->op2.var, &free_op2 EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -48011,9 +48011,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -48128,9 +48128,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -48245,9 +48245,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -48361,9 +48361,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = NULL;
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -51540,9 +51540,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
@ -51657,9 +51657,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -51774,9 +51774,9 @@ try_assign_dim_array:
|
|||
zval_ptr_dtor_nogc(free_op_data);
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
zval_ptr_dtor_nogc(EX_VAR((opline+1)->op1.var));
|
||||
UNDEF_RESULT();
|
||||
|
@ -51890,9 +51890,9 @@ try_assign_dim_array:
|
|||
|
||||
}
|
||||
} else if (EXPECTED(Z_TYPE_P(object_ptr) <= IS_FALSE)) {
|
||||
zend_property_info *error_prop;
|
||||
if (Z_ISREF_P(orig_object_ptr) && (error_prop = zend_check_ref_array_assignable(Z_REF_P(orig_object_ptr))) != NULL) {
|
||||
zend_throw_auto_init_in_ref_error(error_prop, "array");
|
||||
if (Z_ISREF_P(orig_object_ptr)
|
||||
&& ZEND_REF_HAS_TYPE_SOURCES(Z_REF_P(orig_object_ptr))
|
||||
&& !zend_verify_ref_array_assignable(Z_REF_P(orig_object_ptr))) {
|
||||
dim = _get_zval_ptr_cv_BP_VAR_R(opline->op2.var EXECUTE_DATA_CC);
|
||||
|
||||
UNDEF_RESULT();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue