1--TEST--
2Test session_destroy() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_destroy() : variation ***\n";
13
14var_dump(session_start());
15var_dump(session_destroy());
16var_dump(session_destroy());
17var_dump(session_destroy());
18var_dump(session_destroy());
19var_dump(session_destroy());
20
21echo "Done";
22ob_end_flush();
23?>
24--EXPECTF--
25*** Testing session_destroy() : variation ***
26bool(true)
27bool(true)
28
29Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
30bool(false)
31
32Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
33bool(false)
34
35Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
36bool(false)
37
38Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
39bool(false)
40Done
41