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