summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-09-11 15:15:57 +0000
committerAndi Gutmans <andi@php.net>2000-09-11 15:15:57 +0000
commit5348058938419bac8e30386c28728ad4a49532ae (patch)
tree81e117daf33e879fbba0f0d9793fc6ab50bf04b5 /Zend/zend_compile.c
parentdb1422f10e95d52b638932f7de159a413cbcaaad (diff)
downloadphp-git-5348058938419bac8e30386c28728ad4a49532ae.tar.gz
- Forgot to create extended info in include()/require() call
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c24
1 files changed, 14 insertions, 10 deletions
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);
}