com php-src: Fixed mem issue with internal return type hinting assert: Zend/zend_closures.c
| From: | Xinchen Hui | Date: | Sat, 21 Feb 2015 14:17:17 +0000 |
| Subject: | com php-src: Fixed mem issue with internal return type hinting assert: Zend/zend_closures.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85044@lists.php.net to get a copy of this message | ||
Commit: 865a719a3f88514dfb5570e682435d5720e52ec4
Author: Xinchen Hui <laruence@php.net> Sat, 21 Feb 2015 22:17:17 +0800
Parents: 3fd613effbd5710ffe7c5228fbb3b3e98593f789
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=865a719a3f88514dfb5570e682435d5720e52ec4
Log:
Fixed mem issue with internal return type hinting assert
Changed paths:
M Zend/zend_closures.c
Diff:
diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c
index 967cb6a..3943b71 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;
}
/* }}} */