com php-src: Fixed getClosureThis(): ext/reflection/php_refle ction.c
| From: | Dmitry Stogov | Date: | Sun, 02 Mar 2014 13:40:20 +0000 |
| Subject: | com php-src: Fixed getClosureThis(): ext/reflection/php_refle ction.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77825@lists.php.net to get a copy of this message | ||
Commit: 4eeee08ec8d82cf2cfb39a43ee764b4632a0a074
Author: Xinchen Hui <laruence@gmail.com> Sun, 2 Mar 2014 21:40:20 +0800
Parents: 81271854e899ca888dbd538d4cfaf90ed5af9c4e
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4eeee08ec8d82cf2cfb39a43ee764b4632a0a074
Log:
Fixed getClosureThis()
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 1632392..f1db730 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1691,7 +1691,7 @@ ZEND_METHOD(reflection_function, getClosureThis)
GET_REFLECTION_OBJECT_PTR(fptr);
if (!ZVAL_IS_UNDEF(&intern->obj)) {
closure_this = zend_get_closure_this_ptr(&intern->obj TSRMLS_CC);
- if (closure_this) {
+ if (!ZVAL_IS_UNDEF(closure_this)) {
RETURN_ZVAL(closure_this, 1, 0);
}
}