From: krakjoe Date: Wed, 18 Dec 2013 07:57:27 +0000 (+0000) Subject: fix crash on clean in nts X-Git-Tag: php-5.6.0alpha1~110^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64dabffd08f68124fffedb817ac270c97bedf32c;p=php fix crash on clean in nts --- 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);