module_shutdown() calls ts_free_thread in ZTS mode. so SG() cannot be accessed

afterwards.
This commit is contained in:
Thies C. Arntzen 2001-08-05 14:04:23 +00:00
parent 7168c31482
commit 0fe837b448

View file

@ -769,7 +769,6 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
} }
php_request_shutdown((void *) 0); php_request_shutdown((void *) 0);
php_module_shutdown();
if (SG(request_info).path_translated) { if (SG(request_info).path_translated) {
free(SG(request_info).path_translated); free(SG(request_info).path_translated);
@ -778,6 +777,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
if (cgi_sapi_module.php_ini_path_override) { if (cgi_sapi_module.php_ini_path_override) {
free(cgi_sapi_module.php_ini_path_override); free(cgi_sapi_module.php_ini_path_override);
} }
php_module_shutdown();
} zend_catch { } zend_catch {
exit_status = -1; exit_status = -1;
} zend_end_try(); } zend_end_try();