mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Revert crap.
This commit is contained in:
parent
320a87e4f9
commit
4a38020ddd
@ -1946,19 +1946,11 @@ int zend_fetch_dim_unset_handler(ZEND_OPCODE_HANDLER_ARGS)
|
||||
}
|
||||
*/
|
||||
zend_fetch_dimension_address(&EX(opline)->result, &EX(opline)->op1, &EX(opline)->op2, EX(Ts), BP_VAR_R TSRMLS_CC);
|
||||
if (EX_T(EX(opline)->result.u.var).EA.type == IS_STRING_OFFSET) {
|
||||
zend_error(E_ERROR, "Cannot unset string offsets");
|
||||
} else {
|
||||
if (Z_TYPE_PP(EX_T(EX(opline)->result.u.var).var.ptr_ptr) != IS_ARRAY) {
|
||||
zend_error(E_ERROR, "Illegal scalar dereference");
|
||||
}
|
||||
|
||||
PZVAL_UNLOCK(*EX_T(EX(opline)->result.u.var).var.ptr_ptr);
|
||||
if (EX_T(EX(opline)->result.u.var).var.ptr_ptr != &EG(uninitialized_zval_ptr)) {
|
||||
SEPARATE_ZVAL_IF_NOT_REF(EX_T(EX(opline)->result.u.var).var.ptr_ptr);
|
||||
}
|
||||
PZVAL_LOCK(*EX_T(EX(opline)->result.u.var).var.ptr_ptr);
|
||||
PZVAL_UNLOCK(*EX_T(EX(opline)->result.u.var).var.ptr_ptr);
|
||||
if (EX_T(EX(opline)->result.u.var).var.ptr_ptr != &EG(uninitialized_zval_ptr)) {
|
||||
SEPARATE_ZVAL_IF_NOT_REF(EX_T(EX(opline)->result.u.var).var.ptr_ptr);
|
||||
}
|
||||
PZVAL_LOCK(*EX_T(EX(opline)->result.u.var).var.ptr_ptr);
|
||||
NEXT_OPCODE();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user