diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-31 10:14:39 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-31 10:14:39 +0200 |
commit | e81becce08aa2a4a73fd421c1ad01aeeeeedf277 (patch) | |
tree | d3f47959206297f96a8452521e5e31d170659302 /Zend/zend_execute_API.c | |
parent | c8093fe94a0bfa6aff3ead29744fb20d7c60c07b (diff) | |
download | php-git-e81becce08aa2a4a73fd421c1ad01aeeeeedf277.tar.gz |
Fix trampoline leak in array_map
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 2fd465acec..373f3e0669 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -420,6 +420,9 @@ void shutdown_executor(void) /* {{{ */ } #endif + /* Check whether anyone is hogging the trampoline. */ + ZEND_ASSERT(EG(trampoline).common.function_name == NULL || CG(unclean_shutdown)); + EG(ht_iterators_used) = 0; zend_shutdown_fpu(); |