1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00

fix crash on clean in nts

This commit is contained in:
krakjoe
2013-12-18 07:57:27 +00:00
parent baceff6ad4
commit 64dabffd08

View File

@@ -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);