summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index 0626b5c047..3848d501fe 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1594,6 +1594,10 @@ void php_module_shutdown(TSRMLS_D)
return;
}
+#ifdef ZTS
+ ts_free_worker_threads();
+#endif
+
#if defined(PHP_WIN32) || (defined(NETWARE) && defined(USE_WINSOCK))
/*close winsock */
WSACleanup();