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; 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(34) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}" 28bool(true) 29Done 30