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