mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
module_shutdown() calls ts_free_thread in ZTS mode. so SG() cannot be accessed
afterwards.
This commit is contained in:
parent
7168c31482
commit
0fe837b448
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue