1--TEST--
2Test session_encode() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.serialize_handler=php_binary
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--EXPECT--
24*** Testing session_encode() : variation ***
25bool(true)
26string(24) "A2Zvb2k6MTIzNDU2Nzg5MDs="
27bool(true)
28Done
29