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 12/* 13 * Prototype : bool session_write_close(void) 14 * Description : Write session data and end session 15 * Source code : ext/session/session.c 16 */ 17 18echo "*** Testing session_write_close() : variation ***\n"; 19 20var_dump(session_id("test")); 21var_dump(session_start()); 22var_dump(session_id()); 23var_dump(session_write_close()); 24var_dump(session_id()); 25var_dump(session_start()); 26var_dump(session_id()); 27var_dump(session_write_close()); 28var_dump(session_id()); 29var_dump(session_start()); 30var_dump(session_id()); 31var_dump(session_write_close()); 32var_dump(session_id()); 33var_dump(session_start()); 34var_dump(session_destroy()); 35 36echo "Done"; 37ob_end_flush(); 38?> 39--EXPECTF-- 40*** Testing session_write_close() : variation *** 41string(0) "" 42bool(true) 43string(4) "test" 44NULL 45string(4) "test" 46bool(true) 47string(4) "test" 48NULL 49string(4) "test" 50bool(true) 51string(4) "test" 52NULL 53string(4) "test" 54bool(true) 55bool(true) 56Done 57 58