1--TEST-- 2Test session_encode() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10/* 11 * Prototype : string session_encode(void) 12 * Description : Encodes the current session data as a string 13 * Source code : ext/session/session.c 14 */ 15 16echo "*** Testing session_encode() : variation ***\n"; 17 18var_dump(session_start()); 19 20$array = array(1,2,3); 21$_SESSION["foo"] = &$array; 22var_dump(session_encode()); 23var_dump(session_destroy()); 24 25echo "Done"; 26ob_end_flush(); 27?> 28--EXPECT-- 29*** Testing session_encode() : variation *** 30bool(true) 31string(34) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}" 32bool(true) 33Done 34