cvs: ZendEngine2 / zend_compile.c

From: Date: Mon, 07 Feb 2005 16:44:01 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3376@lists.php.net to get a copy of this message
dmitry Mon Feb 7 11:44:01 2005 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fixed FE_RESET/FE_FETCH bug. Now FE_RESET instruction takes jump-address from itself, not from the following FE_FETCH instruction. http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.608&r2=1.609&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.608 ZendEngine2/zend_compile.c:1.609 --- ZendEngine2/zend_compile.c:1.608 Mon Feb 7 11:09:54 2005 +++ ZendEngine2/zend_compile.c Mon Feb 7 11:44:00 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.608 2005/02/07 16:09:54 dmitry Exp $ */ +/* $Id: zend_compile.c,v 1.609 2005/02/07 16:44:00 dmitry Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3478,6 +3478,7 @@ SET_UNUSED(opline->op2); CG(active_op_array)->opcodes[foreach_token->u.opline_num].op2.u.opline_num = get_next_op_number(CG(active_op_array)); + CG(active_op_array)->opcodes[foreach_token->u.opline_num-1].op2.u.opline_num = get_next_op_number(CG(active_op_array)); /* FE_RESET */ do_end_loop(foreach_token->u.opline_num TSRMLS_CC);

« previous php.zend-engine.cvs (#3376) next »