From 4eeee08ec8d82cf2cfb39a43ee764b4632a0a074 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 2 Mar 2014 21:40:20 +0800 Subject: [PATCH] Fixed getClosureThis() --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 16323923ea..f1db730c8a 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); } } -- 2.50.1