summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-02-14 13:12:50 +0300
committerDmitry Stogov <dmitry@zend.com>2019-02-14 13:12:50 +0300
commit43a7d95016761787cace63fb52e93e27e123d0cc (patch)
tree5c063c77d0ee0c0cc12e4ae15dc64602d216906c /Zend/zend_builtin_functions.c
parent8b6dba25c784ef9f190f84ced351d9ccc16f0a91 (diff)
downloadphp-git-43a7d95016761787cace63fb52e93e27e123d0cc.tar.gz
Fixed bug #77613 (method visibility change) (reverted ZEND_ACC_CTOR and ZEND_ACC_DTOR flags removal)
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index ab365967bd..93bbd3bc87 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -1291,7 +1291,7 @@ ZEND_FUNCTION(get_class_methods)
if (!key) {
ZVAL_STR_COPY(&method_name, mptr->common.function_name);
zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), &method_name);
- } else if (mptr->common.scope->constructor != mptr ||
+ } else if ((mptr->common.fn_flags & ZEND_ACC_CTOR) == 0 ||
mptr->common.scope == ce ||
zend_binary_strcasecmp(ZSTR_VAL(key), ZSTR_LEN(key), ZSTR_VAL(mptr->common.function_name), len) == 0) {