diff options
author | Andi Gutmans <andi@php.net> | 2000-03-31 00:05:41 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-03-31 00:05:41 +0000 |
commit | 24302e89e5d652ab9816b0dc40c0cb1d803d19b1 (patch) | |
tree | 02c1e9c0993c6dd4d4198d85be434fa9af354a6a | |
parent | 7dfcbd13c22b67bcd0d9779fe24ae454900a84cb (diff) | |
download | php-git-24302e89e5d652ab9816b0dc40c0cb1d803d19b1.tar.gz |
- Fix bug
-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 f2831dfced..f09f7293d0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1844,6 +1844,7 @@ void do_list_end(znode *result, znode *expr CLS_DC) void do_fetch_global_or_static_variable(znode *varname, znode *static_assignment, int fetch_type CLS_DC) { + int opline_num = get_next_op_number(CG(active_op_array)); zend_op *opline = get_next_op(CG(active_op_array) CLS_CC); znode lval; @@ -1874,8 +1875,7 @@ void do_fetch_global_or_static_variable(znode *varname, znode *static_assignment } fetch_simple_variable(&lval, varname, 0 CLS_CC); /* Relies on the fact that the default fetch is BP_VAR_W */ - - do_assign_ref(NULL, &lval, &opline->result CLS_CC); + do_assign_ref(NULL, &lval, &CG(active_op_array)->opcodes[opline_num].result CLS_CC); CG(active_op_array)->opcodes[CG(active_op_array)->last-1].result.u.EA.type |= EXT_TYPE_UNUSED; } |