com php-src: fix crash on clean in nts: phpdbg.c
| From: | Bob Weinand | Date: | Wed, 18 Dec 2013 07:57:27 +0000 |
| Subject: | com php-src: fix crash on clean in nts: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75258@lists.php.net to get a copy of this message | ||
Commit: 64dabffd08f68124fffedb817ac270c97bedf32c
Author: krakjoe <joe.watkins@live.co.uk> Wed, 18 Dec 2013 07:57:27 +0000
Parents: baceff6ad4bad3f13426be01db2971294dfe703f
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=64dabffd08f68124fffedb817ac270c97bedf32c
Log:
fix crash on clean in nts
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 7a5cd48..c6d44ba 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);