cvs: ZendEngine2 / zend_compile.c

From: Date: Fri, 05 Mar 2004 17:18:34 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2450@lists.php.net to get a copy of this message
andi Fri Mar 5 12:18:34 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: - Fix some small problems I introduce in last patch. http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.553&r2=1.554&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.553 ZendEngine2/zend_compile.c:1.554 --- ZendEngine2/zend_compile.c:1.553 Fri Mar 5 08:04:21 2004 +++ ZendEngine2/zend_compile.c Fri Mar 5 12:18:34 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.553 2004/03/05 13:04:21 andi Exp $ */ +/* $Id: zend_compile.c,v 1.554 2004/03/05 17:18:34 andi Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1075,7 +1075,7 @@ /* Push a seperator to the switch and foreach stacks */ zend_switch_entry switch_entry; - /* switch_entry.cond.op_type = IS_UNUSED; Doesn't seem to be needed now */ + switch_entry.cond.op_type = IS_UNUSED; switch_entry.default_case = 0; switch_entry.control_var = 0; @@ -1489,7 +1489,7 @@ zend_op *opline; /* If we reach the seperator then stop applying the stack */ - if (foreach_copy->op1.op_type == IS_UNUSED && foreach_copy->op2.op_type == IS_UNUSED) { + if (foreach_copy->result.op_type == IS_UNUSED && foreach_copy->op1.op_type == IS_UNUSED) { return 1; }

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