cvs: ZendEngine2(PHP_5_0) / zend_compile.c

From: Date: Sun, 29 Aug 2004 13:29:48 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2919@lists.php.net to get a copy of this message
helly Sun Aug 29 09:29:48 2004 EDT Modified files: (Branch: PHP_5_0) /ZendEngine2 zend_compile.c Log: MFH: Bugfix #29882 isset crashes on arrays http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.567.2.7&r2=1.567.2.8&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.567.2.7 ZendEngine2/zend_compile.c:1.567.2.8 --- ZendEngine2/zend_compile.c:1.567.2.7 Thu Aug 26 19:02:55 2004 +++ ZendEngine2/zend_compile.c Sun Aug 29 09:29:47 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.567.2.7 2004/08/26 23:02:55 helly Exp $ */ +/* $Id: zend_compile.c,v 1.567.2.8 2004/08/29 13:29:47 helly Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -761,6 +761,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 (#2919) next »