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_encode()); 19var_dump(session_start()); 20var_dump(session_encode()); 21var_dump(session_write_close()); 22var_dump(session_encode()); 23var_dump(session_start()); 24var_dump(session_encode()); 25var_dump(session_destroy()); 26var_dump(session_encode()); 27 28echo "Done"; 29ob_end_flush(); 30?> 31--EXPECTF-- 32*** Testing session_encode() : variation *** 33 34Warning: session_encode(): Cannot encode non-existent session in %s on line %d 35bool(false) 36bool(true) 37bool(false) 38bool(true) 39bool(false) 40bool(true) 41bool(false) 42bool(true) 43 44Warning: session_encode(): Cannot encode non-existent session in %s on line %d 45bool(false) 46Done 47