Skip to content

Commit 64dabff

Browse files
committed
fix crash on clean in nts
1 parent baceff6 commit 64dabff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpdbg.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,13 @@ int main(int argc, char **argv) /* {{{ */
12171217
goto phpdbg_interact;
12181218
}
12191219
#endif
1220+
1221+
#ifndef ZTS
1222+
/* force cleanup of auto and core globals */
1223+
zend_hash_clean(CG(auto_globals));
1224+
memset(
1225+
&core_globals, 0, sizeof(php_core_globals));
1226+
#endif
12201227

12211228
if (ini_entries) {
12221229
free(ini_entries);

0 commit comments

Comments
 (0)