summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_inheritance.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index 4d20fcd817..9a4efed9b9 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -607,9 +607,6 @@ static void do_inheritance_check_on_method(zend_function *child, zend_function *
zend_function *new_function = zend_arena_alloc(&CG(arena), sizeof(zend_op_array));
memcpy(new_function, child, sizeof(zend_op_array));
Z_PTR_P(child_zv) = child = new_function;
- if (child->op_array.refcount) {
- (*child->op_array.refcount)++;
- }
}
}
child->common.prototype = proto;