From: Dmitry Stogov Date: Sun, 18 May 2014 09:28:06 +0000 (+0400) Subject: Fixed wrong condition X-Git-Tag: POST_PHPNG_MERGE~328^2~3^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41336194b5af6c1a66d749b3d88c4566485322a9;p=php Fixed wrong condition --- 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)) {