1--TEST-- 2Test session_unset() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10echo "*** Testing session_unset() : variation ***\n"; 11 12var_dump(session_unset()); 13var_dump(session_start()); 14var_dump(session_unset()); 15$_SESSION["foo"] = "Hello World!"; 16var_dump($_SESSION); 17var_dump(session_destroy()); 18var_dump(session_unset()); 19var_dump($_SESSION); 20var_dump(session_unset()); 21 22echo "Done"; 23ob_end_flush(); 24?> 25--EXPECT-- 26*** Testing session_unset() : variation *** 27bool(false) 28bool(true) 29bool(true) 30array(1) { 31 ["foo"]=> 32 string(12) "Hello World!" 33} 34bool(true) 35bool(false) 36array(1) { 37 ["foo"]=> 38 string(12) "Hello World!" 39} 40bool(false) 41Done 42