cvs: Zend(PHP_4_3) / zend_compile.c

From: Date: Sun, 29 Aug 2004 16:51:09 +0000
Subject: cvs: Zend(PHP_4_3) / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2920@lists.php.net to get a copy of this message
helly Sun Aug 29 12:51:09 2004 EDT Modified files: (Branch: PHP_4_3) /Zend zend_compile.c Log: MFH: Bugfix #29882 isset crashes on arrays http://cvs.php.net/diff.php/Zend/zend_compile.c?r1=1.240.2.6&r2=1.240.2.7&ty=u Index: Zend/zend_compile.c diff -u Zend/zend_compile.c:1.240.2.6 Zend/zend_compile.c:1.240.2.7 --- Zend/zend_compile.c:1.240.2.6 Thu Aug 28 12:08:11 2003 +++ Zend/zend_compile.c Sun Aug 29 12:51:09 2004 @@ -568,6 +568,9 @@ opline->opcode += 3; break; case BP_VAR_IS: + if (opline->opcode == ZEND_FETCH_DIM_W && opline->op2.op_type == IS_UNUSED) { + zend_error(E_COMPILE_ERROR, "Cannot use [] for reading"); + } opline->opcode += 6; /* 3+3 */ break; case BP_VAR_FUNC_ARG:

« previous php.zend-engine.cvs (#2920) next »