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