1--TEST--
2Test session_destroy() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10/*
11 * Prototype : bool session_destroy(void)
12 * Description : Destroys all data registered to a session
13 * Source code : ext/session/session.c
14 */
15
16echo "*** Testing session_destroy() : variation ***\n";
17
18var_dump(session_start());
19var_dump(session_id());
20var_dump(session_destroy());
21var_dump(session_id());
22var_dump(session_start());
23var_dump(session_id());
24var_dump(session_destroy());
25var_dump(session_id());
26
27echo "Done";
28ob_end_flush();
29?>
30--EXPECTF--
31*** Testing session_destroy() : variation ***
32bool(true)
33string(%d) "%s"
34bool(true)
35string(0) ""
36bool(true)
37string(%d) "%s"
38bool(true)
39string(0) ""
40Done
41
42