From: Andi Gutmans Date: Mon, 11 Sep 2000 15:15:57 +0000 (+0000) Subject: - Forgot to create extended info in include()/require() call X-Git-Tag: php-4.0.3RC1~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5348058938419bac8e30386c28728ad4a49532ae;p=php - Forgot to create extended info in include()/require() call --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 747061d00d..8a35037e2d 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1947,18 +1947,22 @@ void do_cast(znode *result, znode *expr, int type CLS_DC) void do_include_or_eval(int type, znode *result, znode *op1 CLS_DC) { - zend_op *opline = get_next_op(CG(active_op_array) CLS_CC); + do_extended_fcall_begin(CLS_C); + { + zend_op *opline = get_next_op(CG(active_op_array) CLS_CC); - opline->opcode = ZEND_INCLUDE_OR_EVAL; - opline->result.op_type = IS_VAR; - opline->result.u.var = get_temporary_variable(CG(active_op_array)); - opline->op1 = *op1; - SET_UNUSED(opline->op2); - opline->op2.u.constant.value.lval = type; - *result = opline->result; - if (type==ZEND_REQUIRE) { - opline->result.u.EA.type |= EXT_TYPE_UNUSED; + opline->opcode = ZEND_INCLUDE_OR_EVAL; + opline->result.op_type = IS_VAR; + opline->result.u.var = get_temporary_variable(CG(active_op_array)); + opline->op1 = *op1; + SET_UNUSED(opline->op2); + opline->op2.u.constant.value.lval = type; + *result = opline->result; + if (type==ZEND_REQUIRE) { + opline->result.u.EA.type |= EXT_TYPE_UNUSED; + } } + do_extended_fcall_end(CLS_C); }