1--TEST--
2Test session_encode() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_encode() : variation ***\n";
13
14var_dump(session_start());
15
16$array = array(1,2,3);
17$_SESSION["foo"] = &$array;
18$_SESSION["guff"] = &$array;
19$_SESSION["blah"] = &$array;
20var_dump(session_encode());
21var_dump(session_destroy());
22
23echo "Done";
24ob_end_flush();
25?>
26--EXPECT--
27*** Testing session_encode() : variation ***
28bool(true)
29string(52) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}guff|R:1;blah|R:1;"
30bool(true)
31Done
32