summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-01-26 05:03:22 +0000
committerAndi Gutmans <andi@php.net>2000-01-26 05:03:22 +0000
commit4585f7bf1f8e5fb52aebd0990d67fa017ea8a918 (patch)
tree6f54962014d4695fdd5910019ac7ec4dd0a8adb2 /Zend/zend_opcode.c
parent5c3917478a0cbdd4fd7468780e3c8175fd397707 (diff)
downloadphp-git-4585f7bf1f8e5fb52aebd0990d67fa017ea8a918.tar.gz
- Allow is_ref to become 0 in case the refcount is back to 1.
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 4ca0b43eed..a80aa26bc7 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -313,9 +313,11 @@ void pass_include_eval(zend_op_array *op_array)
while (opline<end) {
if (opline->op1.op_type==IS_CONST) {
opline->op1.u.constant.is_ref = 1;
+ opline->op1.u.constant.refcount = 2; /* Make sure is_ref won't be reset */
}
if (opline->op2.op_type==IS_CONST) {
opline->op2.u.constant.is_ref = 1;
+ opline->op2.u.constant.refcount = 2;
}
opline++;
}