]> granicus.if.org Git - php/commitdiff
Removed wrong reference counting
authorDmitry Stogov <dmitry@zend.com>
Wed, 3 Oct 2018 17:15:30 +0000 (20:15 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 3 Oct 2018 17:15:30 +0000 (20:15 +0300)
Zend/zend_inheritance.c

index 4d20fcd8171d3178afa263347e11385455f325cf..9a4efed9b9e81d690c973af46146e6594af604cf 100644 (file)
@@ -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;