From: Xinchen Hui Date: Sat, 21 Feb 2015 14:17:17 +0000 (+0800) Subject: Fixed mem issue with internal return type hinting assert X-Git-Tag: PRE_PHP7_EREG_MYSQL_REMOVALS~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=865a719a3f88514dfb5570e682435d5720e52ec4;p=php Fixed mem issue with internal return type hinting assert --- diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c index 967cb6acc6..3943b7105a 100644 --- a/Zend/zend_closures.c +++ b/Zend/zend_closures.c @@ -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; } /* }}} */