summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-12-18 21:40:48 -0800
committerXinchen Hui <laruence@gmail.com>2015-12-18 21:40:48 -0800
commit1d79011fb9244031eee221f8a2041f4a7fd296f3 (patch)
treec77f95549e6d1bd389f9029951c4753d6f5209a3 /Zend/zend_execute_API.c
parenteb4ce3f1a8d3c14bf9245ef730d885be359499a8 (diff)
parent42c8f5e91d4e4ec00d91506e986e3578a3695ee9 (diff)
downloadphp-git-1d79011fb9244031eee221f8a2041f4a7fd296f3.tar.gz
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 802b7c8ca3..1c251d79d6 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -397,6 +397,12 @@ void shutdown_executor(void) /* {{{ */
zend_shutdown_fpu();
+#ifdef ZEND_DEBUG
+ if (EG(ht_iterators_used)) {
+ zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used));
+ }
+#endif
+
EG(ht_iterators_used) = 0;
if (EG(ht_iterators) != EG(ht_iterators_slots)) {
efree(EG(ht_iterators));