The PHP BUG:The php session handler occur exception uncaught in php script

From: Date: Wed, 14 Dec 2016 05:02:38 +0000
Subject: The PHP BUG:The php session handler occur exception uncaught in php script
Groups: php.general 
Request: Send a blank email to php-general+get-325894@lists.php.net to get a copy of this message
for example, php session handler of user function occur exception, you can not caught in start session place. below is code: <?php class MySessionHandler implements SessionHandlerInterface { // implement interfaces here public function open( /* paramters */) { //throw a excetion throw new Exception(); } } try { $handler = new MySessionHandler(); session_set_save_handler($handler, true); session_start(); } catch(Exception $e) { //cant not caught MySessionHandler throw any exception }

« previous php.general (#325894) next »