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$_SESSION["foo"] = &$array; 16$_SESSION["guff"] = &$array; 17$_SESSION["blah"] = &$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(52) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}guff|R:1;blah|R:1;" 28bool(true) 29Done 30