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