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$array["foo"] = &$array;
18$array["blah"] = &$array;
19$_SESSION["data"] = &$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(64) "data|a:5:{i:0;i:1;i:1;i:2;i:2;i:3;s:3:"foo";R:1;s:4:"blah";R:1;}"
30bool(true)
31Done
32