cvs: ZendEngine2 / zend_compile.c

From: Date: Sun, 29 Aug 2004 13:28:04 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2918@lists.php.net to get a copy of this message
helly Sun Aug 29 09:28:04 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: Bugfix #29882 isset crashes on arrays http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.584&r2=1.585&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.584 ZendEngine2/zend_compile.c:1.585 --- ZendEngine2/zend_compile.c:1.584 Thu Aug 26 18:59:25 2004 +++ ZendEngine2/zend_compile.c Sun Aug 29 09:28:03 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.584 2004/08/26 22:59:25 helly Exp $ */ +/* $Id: zend_compile.c,v 1.585 2004/08/29 13:28:03 helly Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -763,6 +763,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 (#2918) next »