1--TEST-- 2Test session_start() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10/* 11 * Prototype : bool session_start(void) 12 * Description : Initialize session data 13 * Source code : ext/session/session.c 14 */ 15 16echo "*** Testing session_start() : variation ***\n"; 17 18var_dump(session_start()); 19var_dump(session_write_close()); 20var_dump(session_start()); 21var_dump(session_write_close()); 22var_dump(session_start()); 23var_dump(session_write_close()); 24var_dump(session_start()); 25var_dump(session_write_close()); 26var_dump(session_start()); 27var_dump(session_write_close()); 28var_dump(session_destroy()); 29 30echo "Done"; 31ob_end_flush(); 32?> 33--EXPECTF-- 34*** Testing session_start() : variation *** 35bool(true) 36bool(true) 37bool(true) 38bool(true) 39bool(true) 40bool(true) 41bool(true) 42bool(true) 43bool(true) 44bool(true) 45 46Warning: session_destroy(): Trying to destroy uninitialized session in %s on line 23 47bool(false) 48Done 49