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; 16var_dump(session_encode()); 17var_dump(session_destroy()); 18 19echo "Done"; 20ob_end_flush(); 21?> 22--EXPECT-- 23*** Testing session_encode() : variation *** 24bool(true) 25string(34) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}" 26bool(true) 27Done 28