1--TEST-- 2Test session_encode() function : variation 3--EXTENSIONS-- 4session 5--SKIPIF-- 6<?php include('skipif.inc'); ?> 7--INI-- 8session.serialize_handler=blah 9--FILE-- 10<?php 11 12ob_start(); 13 14echo "*** Testing session_encode() : variation ***\n"; 15 16var_dump(session_start()); 17$_SESSION["foo"] = 1234567890; 18$encoded = session_encode(); 19var_dump(base64_encode($encoded)); 20var_dump(session_destroy()); 21 22echo "Done"; 23ob_end_flush(); 24?> 25--EXPECTF-- 26*** Testing session_encode() : variation *** 27 28Warning: session_start(): Cannot find session serialization handler "blah" - session startup failed in %s on line %d 29bool(false) 30 31Warning: session_encode(): Cannot encode non-existent session in %s on line %d 32string(0) "" 33 34Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d 35bool(false) 36Done 37