From: Dmitry Stogov Date: Wed, 3 Oct 2018 17:15:30 +0000 (+0300) Subject: Removed wrong reference counting X-Git-Tag: php-7.4.0alpha1~1772 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ebac3263ba8f2efcaab1f7ca37a652636582058;p=php Removed wrong reference counting --- 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;