1--TEST-- 2Test session_decode() function : error functionality 3--EXTENSIONS-- 4session 5--SKIPIF-- 6<?php include('skipif.inc'); ?> 7--INI-- 8session.serialize_handler = wrong_handler 9--FILE-- 10<?php 11 12ob_start(); 13session_start(); 14ini_set('session.serialize_handler', 'wrong_handler'); 15var_dump(session_decode('')); 16 17echo "Done"; 18ob_end_flush(); 19?> 20--EXPECTF-- 21Warning: session_start(): Cannot find session serialization handler "wrong_handler" - session startup failed in %s on line 4 22 23Warning: ini_set(): Serialization handler "wrong_handler" cannot be found in %s on line 5 24 25Warning: session_decode(): Session data cannot be decoded when there is no active session in %s on line 6 26bool(false) 27Done 28