summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2013-12-18 07:57:27 +0000
committerkrakjoe <joe.watkins@live.co.uk>2013-12-18 07:57:27 +0000
commit64dabffd08f68124fffedb817ac270c97bedf32c (patch)
treef432f87b21a30d6d30f3536925dfca34e2893fea
parentbaceff6ad4bad3f13426be01db2971294dfe703f (diff)
downloadphp-git-64dabffd08f68124fffedb817ac270c97bedf32c.tar.gz
fix crash on clean in nts
-rw-r--r--phpdbg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpdbg.c b/phpdbg.c
index 7a5cd48e43..c6d44ba3ae 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -1217,6 +1217,13 @@ phpdbg_out:
goto phpdbg_interact;
}
#endif
+
+#ifndef ZTS
+ /* force cleanup of auto and core globals */
+ zend_hash_clean(CG(auto_globals));
+ memset(
+ &core_globals, 0, sizeof(php_core_globals));
+#endif
if (ini_entries) {
free(ini_entries);