From: Xinchen Hui Date: Sun, 2 Mar 2014 13:48:38 +0000 (+0800) Subject: Fixed wrong condition (introduced by previous ci) X-Git-Tag: POST_PHPNG_MERGE~412^2~456 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cb468d5e3e234ca939ac55c5ef36d958c864ee4;p=php Fixed wrong condition (introduced by previous ci) --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 98d90a9bf6..fbec2788f4 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3698,7 +3698,7 @@ ZEND_METHOD(reflection_class, getMethod) method and not the closure definition itself */ reflection_method_factory(ce, mptr, NULL, return_value TSRMLS_CC); efree(lc_name); - } else if (ce == zend_ce_closure && !ZVAL_IS_UNDEF(&intern->obj) && (name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) + } else if (ce == zend_ce_closure && ZVAL_IS_UNDEF(&intern->obj) && (name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) && memcmp(lc_name, ZEND_INVOKE_FUNC_NAME, sizeof(ZEND_INVOKE_FUNC_NAME)-1) == 0 && object_init_ex(&obj_tmp, ce) == SUCCESS && (mptr = zend_get_closure_invoke_method(&obj_tmp TSRMLS_CC)) != NULL) { /* don't assign closure_object since we only reflect the invoke handler