]> granicus.if.org Git - php/commitdiff
Fixed mem issue with internal return type hinting assert
authorXinchen Hui <laruence@php.net>
Sat, 21 Feb 2015 14:17:17 +0000 (22:17 +0800)
committerXinchen Hui <laruence@php.net>
Sat, 21 Feb 2015 14:17:17 +0000 (22:17 +0800)
Zend/zend_closures.c

index 967cb6acc62004f9befac0f02d6b85b09193d7db..3943b7105a262fcd584cecae4595c3527a5ce52b 100644 (file)
@@ -63,6 +63,7 @@ ZEND_METHOD(Closure, __invoke) /* {{{ */
        /* destruct the function also, then - we have allocated it in get_method */
        zend_string_release(func->internal_function.function_name);
        efree(func);
+       EX(func) = NULL;
 }
 /* }}} */