summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-02-21 15:14:27 +0000
committerDmitry Stogov <dmitry@php.net>2008-02-21 15:14:27 +0000
commit18cc21c66266b86ba255301c25cfb08de786f112 (patch)
tree90af3bd098bad4590aa500c17a6c086cf16841f2 /Zend/zend_builtin_functions.c
parente864044411a5530237c4a7473f6bcabc5970feed (diff)
downloadphp-git-18cc21c66266b86ba255301c25cfb08de786f112.tar.gz
Fixed bug #43483 (get_class_methods() does not list all visible methods)
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 f450e57436..c30163a0b0 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -910,7 +910,7 @@ ZEND_FUNCTION(get_class_methods)
if ((mptr->common.fn_flags & ZEND_ACC_PUBLIC)
|| (EG(scope) &&
(((mptr->common.fn_flags & ZEND_ACC_PROTECTED) &&
- instanceof_function(EG(scope), mptr->common.scope TSRMLS_CC))
+ zend_check_protected(mptr->common.scope, EG(scope)))
|| ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) &&
EG(scope) == mptr->common.scope)))) {
char *key;