From: Andi Gutmans Date: Fri, 31 Mar 2000 00:05:41 +0000 (+0000) Subject: - Fix bug X-Git-Tag: php-4.0RC2~553 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24302e89e5d652ab9816b0dc40c0cb1d803d19b1;p=php - Fix bug --- 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; }