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