From:             bugs-php at suyama dot info
Operating system: RHEL4
PHP version:      5.2.6
PHP Bug Type:     Session related
Bug description:  exit() not exit

Description:
------------
Then writing session and closing session (include session_write_close
function), processing is continued without finishing the exit() call back.
A funnier problem occurs when I use this problem with an exception. 
When at first I carry out session_write_close() calling exit, an exception
object becomes null by the later exception handling of an exception.

Reproduce code:
---------------
<?php

session_set_save_handler('dummy', 'dummy', 'dummy','write', 'dummy',
'dummy');

function dummy(){}

function write() {
       print "Write.\n";
       exit;
       print "Not come to here.\n";
}

session_start();

session_write_close();

print "I'm here.\n";


Expected result:
----------------
Write.


Actual result:
--------------
Write.
I'm here.


-- 
Edit bug report at http://bugs.php.net/?id=46489&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46489&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46489&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46489&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46489&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46489&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46489&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46489&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46489&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46489&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46489&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46489&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46489&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46489&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46489&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46489&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46489&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46489&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46489&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46489&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46489&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46489&r=mysqlcfg

Reply via email to