cvs: ZendEngine2(PHP_5_3) / zend_compile.c /tests bug43027.phpt
| From: | Dmitry Stogov | Date: | Thu, 01 Nov 2007 11:58:58 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_3) / zend_compile.c /tests bug43027.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6115@lists.php.net to get a copy of this message | ||
dmitry Thu Nov 1 11:58:58 2007 UTC
Added files: (Branch: PHP_5_3)
/ZendEngine2/tests bug43027.phpt
Modified files:
/ZendEngine2 zend_compile.c
Log:
Fixed bug #43027 (Declare cause fatal error)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.27.2.41.2.12&r2=1.647.2.27.2.41.2.13&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.12
ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.13
--- ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.12 Tue Oct 23 12:52:39 2007
+++ ZendEngine2/zend_compile.c Thu Nov 1 11:58:58 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.12 2007/10/23 12:52:39 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.13 2007/11/01 11:58:58 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -4568,10 +4568,11 @@
char *lcname;
if (CG(active_op_array)->last > 0) {
- /* ignore ZEND_EXT_STMT */
+ /* ignore ZEND_EXT_STMT and ZEND_TICKS */
int num = CG(active_op_array)->last;
while (num > 0 &&
- CG(active_op_array)->opcodes[num-1].opcode == ZEND_EXT_STMT) {
+ (CG(active_op_array)->opcodes[num-1].opcode == ZEND_EXT_STMT ||
+ CG(active_op_array)->opcodes[num-1].opcode == ZEND_TICKS)) {
--num;
}
if (num > 0) {
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug43027.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug43027.phpt
+++ ZendEngine2/tests/bug43027.phpt