--TEST-- GH-7787: Provide more SessionHandler failure information --EXTENSIONS-- session --SKIPIF-- --INI-- session.use_strict_mode=0 session.save_handler=files --FILE-- true, fn() => true, fn() => 'foo|s:3:"foo";', fn() => false, fn() => true, fn() => true, fn() => sha1(random_bytes(32)), fn() => true, fn() => false, ); session_start(); $_SESSION['foo'] = 'bar'; session_write_close(); session_start(); session_write_close(); ?> --EXPECTF-- Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: , handler: MySessionHandler::write) in %s on line %d Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: , handler: MySessionHandler::updateTimestamp) in %s on line %d Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: , handler: write) in %s on line %d Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: , handler: update_timestamp) in %s on line %d