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