1--TEST--
2Test session_unset() function : basic functionality
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() : basic functionality ***\n";
17
18var_dump(session_start());
19$_SESSION["foo"] = "Hello World!";
20var_dump($_SESSION);
21var_dump(session_unset());
22var_dump($_SESSION);
23var_dump(session_destroy());
24var_dump($_SESSION);
25
26echo "Done";
27ob_end_flush();
28?>
29--EXPECT--
30*** Testing session_unset() : basic functionality ***
31bool(true)
32array(1) {
33  ["foo"]=>
34  string(12) "Hello World!"
35}
36bool(true)
37array(0) {
38}
39bool(true)
40array(0) {
41}
42Done
43