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