switch (c) {
case 'h':
case '?':
+#if PHP_FASTCGI
+ fcgi_shutdown();
+#endif
no_headers = 1;
php_output_startup();
php_output_activate(TSRMLS_C);
}
/* end of fastcgi loop */
}
+ fcgi_shutdown();
#endif
if (cgi_sapi_module.php_ini_path_override) {
}
}
+void fcgi_shutdown(void)
+{
+ is_fastcgi = 0;
+}
+
#ifdef _WIN32
/* Do some black magic with the NT security API.
* We prepare a DACL (Discretionary Access Control List) so that
} fcgi_request;
int fcgi_init(void);
+void fcgi_shutdown(void);
int fcgi_is_fastcgi(void);
int fcgi_in_shutdown(void);
int fcgi_listen(const char *path, int backlog);