1--TEST-- 2Test session_write_close() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--INI-- 6session.use_strict_mode=0 7--FILE-- 8<?php 9 10ob_start(); 11 12echo "*** Testing session_write_close() : variation ***\n"; 13 14var_dump(session_id("test")); 15var_dump(session_start()); 16var_dump(session_id()); 17var_dump(session_write_close()); 18var_dump(session_id()); 19var_dump(session_start()); 20var_dump(session_id()); 21var_dump(session_write_close()); 22var_dump(session_id()); 23var_dump(session_start()); 24var_dump(session_id()); 25var_dump(session_write_close()); 26var_dump(session_id()); 27var_dump(session_start()); 28var_dump(session_destroy()); 29 30echo "Done"; 31ob_end_flush(); 32?> 33--EXPECT-- 34*** Testing session_write_close() : variation *** 35string(0) "" 36bool(true) 37string(4) "test" 38bool(true) 39string(4) "test" 40bool(true) 41string(4) "test" 42bool(true) 43string(4) "test" 44bool(true) 45string(4) "test" 46bool(true) 47string(4) "test" 48bool(true) 49bool(true) 50Done 51