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