]> granicus.if.org Git - php/commitdiff
Fixed getClosureThis()
authorXinchen Hui <laruence@gmail.com>
Sun, 2 Mar 2014 13:40:20 +0000 (21:40 +0800)
committerXinchen Hui <laruence@gmail.com>
Sun, 2 Mar 2014 13:40:20 +0000 (21:40 +0800)
ext/reflection/php_reflection.c

index 16323923ea13c7ae2bc22245ed03b954f38edcf7..f1db730c8a1be4953b20cb260ceb92818638d584 100644 (file)
@@ -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);
                }
        }