From 41336194b5af6c1a66d749b3d88c4566485322a9 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Sun, 18 May 2014 13:28:06 +0400 Subject: [PATCH] Fixed wrong condition --- Zend/zend_object_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index a23fc42635..5dff0d9f50 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -1091,7 +1091,7 @@ static union _zend_function *zend_std_get_method(zend_object **obj_ptr, zend_str if (EG(scope) && is_derived_class(fbc->common.scope, EG(scope)) && fbc->op_array.fn_flags & ZEND_ACC_CHANGED) { - if ((func = zend_hash_find(&EG(scope)->function_table, lc_method_name)) == NULL) { + if ((func = zend_hash_find(&EG(scope)->function_table, lc_method_name)) != NULL) { zend_function *priv_fbc = Z_FUNC_P(func); if (priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE && priv_fbc->common.scope == EG(scope)) { -- 2.50.1