diff options
author | krakjoe <joe.watkins@live.co.uk> | 2013-12-18 07:57:27 +0000 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2013-12-18 07:57:27 +0000 |
commit | 64dabffd08f68124fffedb817ac270c97bedf32c (patch) | |
tree | f432f87b21a30d6d30f3536925dfca34e2893fea | |
parent | baceff6ad4bad3f13426be01db2971294dfe703f (diff) | |
download | php-git-64dabffd08f68124fffedb817ac270c97bedf32c.tar.gz |
fix crash on clean in nts
-rw-r--r-- | phpdbg.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |