summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-08-31 10:14:39 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-08-31 10:14:39 +0200
commite81becce08aa2a4a73fd421c1ad01aeeeeedf277 (patch)
treed3f47959206297f96a8452521e5e31d170659302 /Zend/zend_execute_API.c
parentc8093fe94a0bfa6aff3ead29744fb20d7c60c07b (diff)
downloadphp-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.c3
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();