From: Xinchen Hui Date: Sun, 2 Mar 2014 13:40:20 +0000 (+0800) Subject: Fixed getClosureThis() X-Git-Tag: POST_PHPNG_MERGE~412^2~459 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4eeee08ec8d82cf2cfb39a43ee764b4632a0a074;p=php Fixed getClosureThis() --- 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); } }