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