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); 22session_start(); 23var_dump($_SESSION); 24 25session_destroy(); 26echo "Done"; 27ob_end_flush(); 28?> 29--EXPECT-- 30*** Testing session_start() : variation *** 31array(4) { 32 ["colour"]=> 33 string(5) "green" 34 ["animal"]=> 35 string(3) "cat" 36 ["person"]=> 37 string(5) "julia" 38 ["age"]=> 39 int(6) 40} 41bool(true) 42array(4) { 43 ["colour"]=> 44 string(5) "green" 45 ["animal"]=> 46 string(3) "cat" 47 ["person"]=> 48 string(5) "julia" 49 ["age"]=> 50 int(6) 51} 52array(4) { 53 ["colour"]=> 54 string(5) "green" 55 ["animal"]=> 56 string(3) "cat" 57 ["person"]=> 58 string(5) "julia" 59 ["age"]=> 60 int(6) 61} 62Done 63