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