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