summaryrefslogtreecommitdiff
path: root/Zend/zend_object_handlers.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-06-17 10:51:10 +0000
committerDmitry Stogov <dmitry@php.net>2005-06-17 10:51:10 +0000
commit276f733effc4989b32b71d1ba0033e02b727fe13 (patch)
tree52fdf50bd8a77566ff26cad5e059a6b6999151d0 /Zend/zend_object_handlers.c
parentc2982d7dd06fdf78f3bd2f7d1bded90a84c7b089 (diff)
downloadphp-git-276f733effc4989b32b71d1ba0033e02b727fe13.tar.gz
Fixed bug #33277 (private method accessed by child class)
Diffstat (limited to 'Zend/zend_object_handlers.c')
-rw-r--r--Zend/zend_object_handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index 5404e99c76..9d3f09bca6 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -746,7 +746,8 @@ static union _zend_function *zend_std_get_method(zval *object, char *method_name
zend_function *priv_fbc;
if (zend_hash_find(&EG(scope)->function_table, lc_method_name, method_len+1, (void **) &priv_fbc)==SUCCESS
- && priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE) {
+ && priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE
+ && priv_fbc->common.scope == EG(scope)) {
fbc = priv_fbc;
}
}