cvs: ZendEngine2(PHP_5_1) / zend_compile.c
| From: | Dmitry Stogov | Date: | Mon, 10 Oct 2005 10:50:23 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4223@lists.php.net to get a copy of this message | ||
dmitry Mon Oct 10 06:50:23 2005 EDT
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_compile.c
Log:
MFH
http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.647.2.8&r2=1.647.2.9&ty=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.8 ZendEngine2/zend_compile.c:1.647.2.9
--- ZendEngine2/zend_compile.c:1.647.2.8 Mon Oct 10 05:50:02 2005
+++ ZendEngine2/zend_compile.c Mon Oct 10 06:50:16 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.647.2.8 2005/10/10 09:50:02 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.647.2.9 2005/10/10 10:50:16 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -537,16 +537,16 @@
void zend_do_assign(znode *result, znode *variable, znode *value TSRMLS_DC)
{
+ int last_op_number = get_next_op_number(CG(active_op_array));
zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC);
if (variable->op_type == IS_VAR) {
- int last_op_number = get_next_op_number(CG(active_op_array));
int n = 0;
while (last_op_number - n > 0) {
zend_op *last_op;
- last_op = &CG(active_op_array)->opcodes[last_op_number-n-1];
+ last_op = &CG(active_op_array)->opcodes[last_op_number-(n+1)];
if (last_op->result.op_type == IS_VAR &&
last_op->result.u.var == variable->u.var) {