summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2004-03-05 17:18:34 +0000
committerAndi Gutmans <andi@php.net>2004-03-05 17:18:34 +0000
commit2af86692ea604631ef5f3e5c91d17044a7bfcfa7 (patch)
tree5603a86d8f3d21c44469dcc516aa0f9a1682293a
parent74775aa41a4ae147dc20f88985c13ab326200885 (diff)
downloadphp-git-2af86692ea604631ef5f3e5c91d17044a7bfcfa7.tar.gz
- Fix some small problems I introduce in last patch.
-rw-r--r--Zend/zend_compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index d95e574257..b31aa41d94 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -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;
}