1--TEST--
2Test session_write_close() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8session.use_strict_mode=0
9--FILE--
10<?php
11
12ob_start();
13
14echo "*** Testing session_write_close() : variation ***\n";
15
16var_dump(session_id("test"));
17var_dump(session_start());
18var_dump(session_id());
19var_dump(session_write_close());
20var_dump(session_id());
21var_dump(session_start());
22var_dump(session_id());
23var_dump(session_write_close());
24var_dump(session_id());
25var_dump(session_start());
26var_dump(session_id());
27var_dump(session_write_close());
28var_dump(session_id());
29var_dump(session_start());
30var_dump(session_destroy());
31
32echo "Done";
33ob_end_flush();
34?>
35--EXPECT--
36*** Testing session_write_close() : variation ***
37string(0) ""
38bool(true)
39string(4) "test"
40bool(true)
41string(4) "test"
42bool(true)
43string(4) "test"
44bool(true)
45string(4) "test"
46bool(true)
47string(4) "test"
48bool(true)
49string(4) "test"
50bool(true)
51bool(true)
52Done
53