diff options
author | Andi Gutmans <andi@php.net> | 2000-04-10 18:24:38 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-04-10 18:24:38 +0000 |
commit | cc0d6ac19c5d9593a7c7a38dc4b43446b5d7afd4 (patch) | |
tree | e94f22b1c9a2c2551798744216e5c56ed1cd268c | |
parent | 232b90454f2858aa69712426d717e7fb64ebd774 (diff) | |
download | php-git-cc0d6ac19c5d9593a7c7a38dc4b43446b5d7afd4.tar.gz |
- Two more places needed changing
-rw-r--r-- | Zend/zend_compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 723d9f383a..375ac0bd3c 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1318,7 +1318,7 @@ void do_switch_end(znode *case_list CLS_DC) zend_stack_top(&CG(switch_cond_stack), (void **) &switch_entry_ptr); - if (case_list->u.opline_num != -1) { /* empty switch */ + if (case_list->op_type != IS_UNUSED) { /* non-empty switch */ int next_op_number = get_next_op_number(CG(active_op_array)); CG(active_op_array)->opcodes[case_list->u.opline_num].op1.u.opline_num = next_op_number; @@ -1444,7 +1444,7 @@ void do_default_before_statement(znode *case_list, znode *default_token CLS_DC) switch_entry_ptr->default_case = next_op_number; next_op_number = get_next_op_number(CG(active_op_array)); - if (case_list->u.opline_num==-1) { + if (case_list->op_type==IS_UNUSED) { return; } CG(active_op_array)->opcodes[case_list->u.opline_num].op1.u.opline_num = next_op_number; |