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