com php-src: Fixed wrong condition (introduced by previous ci): ext/reflection/php_reflection.c
| From: | Dmitry Stogov | Date: | Sun, 02 Mar 2014 13:48:38 +0000 |
| Subject: | com php-src: Fixed wrong condition (introduced by previous ci): ext/reflection/php_reflection.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77828@lists.php.net to get a copy of this message | ||
Commit: 8cb468d5e3e234ca939ac55c5ef36d958c864ee4
Author: Xinchen Hui <laruence@gmail.com> Sun, 2 Mar 2014 21:48:38 +0800
Parents: 18363f42b2bb915009a052e330848ba70ead506b
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8cb468d5e3e234ca939ac55c5ef36d958c864ee4
Log:
Fixed wrong condition (introduced by previous ci)
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 98d90a9..fbec278 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