]> granicus.if.org Git - php/commitdiff
- Fix some small problems I introduce in last patch.
authorAndi Gutmans <andi@php.net>
Fri, 5 Mar 2004 17:18:34 +0000 (17:18 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 5 Mar 2004 17:18:34 +0000 (17:18 +0000)
Zend/zend_compile.c

index d95e5742578ee8d51dff0a4e9cccb68e27c3c16a..b31aa41d94d10bab7dbf4da3167637a2ec377cfd 100644 (file)
@@ -1075,7 +1075,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
                /* 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 @@ static int generate_free_foreach_copy(zend_op *foreach_copy TSRMLS_DC)
        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;
        }