arg = ZEND_CALL_VAR(EX(call), opline->result.var);
if (IS_VAR == IS_VAR && UNEXPECTED(Z_ISERROR_P(varptr))) {
- ZVAL_NEW_REF(arg, &EG(uninitialized_zval));
+ ZVAL_NEW_EMPTY_REF(arg);
+ ZVAL_NULL(Z_REFVAL_P(arg));
ZEND_VM_NEXT_OPCODE();
}
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_VAR != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_VAR != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_VAR != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_VAR != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_UNUSED != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_UNUSED != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_UNUSED != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_UNUSED != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
arg = ZEND_CALL_VAR(EX(call), opline->result.var);
if (IS_CV == IS_VAR && UNEXPECTED(Z_ISERROR_P(varptr))) {
- ZVAL_NEW_REF(arg, &EG(uninitialized_zval));
+ ZVAL_NEW_EMPTY_REF(arg);
+ ZVAL_NULL(Z_REFVAL_P(arg));
ZEND_VM_NEXT_OPCODE();
}
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_CV != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_CV != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_CV != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null:
if (EXPECTED(Z_TYPE_P(container) <= IS_FALSE)) {
goto assign_dim_op_convert_to_array;
}
- if (UNEXPECTED(!Z_ISERROR_P(container))) {
+ if (UNEXPECTED(IS_CV != IS_VAR || !Z_ISERROR_P(container))) {
zend_error(E_WARNING, "Cannot use a scalar value as an array");
}
assign_dim_op_ret_null: