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