cvs: ZendEngine2 / zend_compile.c
| From: | Dmitry Stogov | Date: | Mon, 07 Feb 2005 17:55:04 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3377@lists.php.net to get a copy of this message | ||
dmitry Mon Feb 7 12:55:04 2005 EDT
Modified files:
/ZendEngine2 zend_compile.c
Log:
Fixed bug introduced with foreach() optimization patch
http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.609&r2=1.610&ty=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.609 ZendEngine2/zend_compile.c:1.610
--- ZendEngine2/zend_compile.c:1.609 Mon Feb 7 11:44:00 2005
+++ ZendEngine2/zend_compile.c Mon Feb 7 12:54:58 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.609 2005/02/07 16:44:00 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.610 2005/02/07 17:54:58 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -3453,7 +3453,7 @@
}
if (key->op_type != IS_UNUSED) {
- ++opline;
+ opline = &CG(active_op_array)->opcodes[foreach_token->u.opline_num+1];
opline->result.op_type = IS_TMP_VAR;
opline->result.u.EA.type = 0;
opline->result.u.opline_num = get_temporary_variable(CG(active_op_array));