1--TEST-- 2Test session_write_close() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10/* 11 * Prototype : bool session_write_close(void) 12 * Description : Write session data and end session 13 * Source code : ext/session/session.c 14 */ 15 16echo "*** Testing session_write_close() : variation ***\n"; 17 18var_dump(session_id("test")); 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_id()); 29var_dump(session_write_close()); 30var_dump(session_id()); 31var_dump(session_start()); 32var_dump(session_destroy()); 33 34echo "Done"; 35ob_end_flush(); 36?> 37--EXPECTF-- 38*** Testing session_write_close() : variation *** 39string(0) "" 40bool(true) 41string(4) "test" 42NULL 43string(4) "test" 44bool(true) 45string(4) "test" 46NULL 47string(4) "test" 48bool(true) 49string(4) "test" 50NULL 51string(4) "test" 52bool(true) 53bool(true) 54Done 55 56