|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-06 01:16 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 17:00:01 2025 UTC |
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.