There are quite a few modules which are using VIRTUAL_DIR. I don't think
this should be happening.
sapi_globals_ctor(&sapi_globals);
#endif
-#ifdef ZTS
+#ifdef VIRTUAL_DIR
virtual_cwd_startup(); /* Could use shutdown to free the main cwd but it would just slow it down for CGI */
#endif
SAPI_API void sapi_shutdown(void)
{
reentrancy_shutdown();
-#ifdef ZTS
+#ifdef VIRTUAL_DIR
virtual_cwd_shutdown();
#endif
php_global_shutdown_internal_extensions();