mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed bug #60634 (Segmentation fault when trying to die() in SessionHandler::write())
This commit is contained in:
parent
ac6ea3d067
commit
ef61504b35
4
NEWS
4
NEWS
@ -44,6 +44,10 @@ PHP NEWS
|
||||
. Fixed bug #60948 (mysqlnd FTBFS when -Wformat-security is enabled).
|
||||
(Johannes)
|
||||
|
||||
- Session
|
||||
. Fixed bug #60634 (Segmentation fault when trying to die() in
|
||||
SessionHandler::write()). (Ilia)
|
||||
|
||||
- SOAP
|
||||
. Fixed bug #60887 (SoapClient ignores user_agent option and sends no
|
||||
User-Agent header). (carloschilazo at gmail dot com)
|
||||
|
@ -1450,9 +1450,7 @@ static void php_session_flush(TSRMLS_D) /* {{{ */
|
||||
{
|
||||
if (PS(session_status) == php_session_active) {
|
||||
PS(session_status) = php_session_none;
|
||||
zend_try {
|
||||
php_session_save_current_state(TSRMLS_C);
|
||||
} zend_end_try();
|
||||
php_session_save_current_state(TSRMLS_C);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
@ -2142,7 +2140,9 @@ static PHP_RSHUTDOWN_FUNCTION(session) /* {{{ */
|
||||
{
|
||||
int i;
|
||||
|
||||
php_session_flush(TSRMLS_C);
|
||||
zend_try {
|
||||
php_session_flush(TSRMLS_C);
|
||||
} zend_end_try();
|
||||
php_rshutdown_session_globals(TSRMLS_C);
|
||||
|
||||
/* this should NOT be done in php_rshutdown_session_globals() */
|
||||
|
Loading…
Reference in New Issue
Block a user