diff options
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r-- | Zend/zend_inheritance.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 30899982c8..4288d8fb59 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -101,15 +101,6 @@ static zend_always_inline zend_function *zend_duplicate_function(zend_function * /* reuse the same op_array structure */ return func; } - if (func->op_array.fn_flags & ZEND_ACC_PRIVATE) { - /* For private methods we reuse the same op_array structure even if - * static variables are used, because it will not end up being used - * anyway. However we still need to addref as the dtor will delref. */ - if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) { - GC_ADDREF(func->op_array.static_variables); - } - return func; - } return zend_duplicate_user_function(func); } } |