diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2012-03-08 03:31:46 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2012-03-08 03:31:46 +0000 |
commit | f005f36cd6b1dfe50c1f7cb6f4169e69ba5659b8 (patch) | |
tree | 1b830e6b1f2d6b915e46e51e18ac76c322bf9178 /ext/session | |
parent | c9436c200eefa52edec6b921b6f65142989ed52d (diff) | |
download | php-git-f005f36cd6b1dfe50c1f7cb6f4169e69ba5659b8.tar.gz |
Fixed bug #60634 (Segmentation fault when trying to die() in SessionHandler::write())
Diffstat (limited to 'ext/session')
-rw-r--r-- | ext/session/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 875ac473c0..6d5acb9d6e 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1512,9 +1512,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); } } /* }}} */ @@ -2167,7 +2165,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() */ |