summaryrefslogtreecommitdiff
path: root/Zend/zend_inheritance.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-10-03 20:15:30 +0300
committerDmitry Stogov <dmitry@zend.com>2018-10-03 20:15:30 +0300
commit2ebac3263ba8f2efcaab1f7ca37a652636582058 (patch)
tree8c4929fedb3cdebd6d921bc6a1fc079631eba8ee /Zend/zend_inheritance.c
parent969fdb717a2074169671289d6bee31435901b431 (diff)
downloadphp-git-2ebac3263ba8f2efcaab1f7ca37a652636582058.tar.gz
Removed wrong reference counting
Diffstat (limited to 'Zend/zend_inheritance.c')
-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;