From: Moriyoshi Koizumi Date: Wed, 3 Dec 2003 22:08:58 +0000 (+0000) Subject: This kind of error should be caught. (suggested by Andi, thanks) X-Git-Tag: php-5.0.0b3RC1~372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fe26e76eb4fdc50b9ef95d6d3cd10e8c6fbfbc1;p=php This kind of error should be caught. (suggested by Andi, thanks) --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 05063cbfe5..39387b9fcd 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1947,7 +1947,7 @@ 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_WARNING, "Cannot unset string offsets"); + zend_error(E_ERROR, "Cannot unset string offsets"); } else { 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)) {