1--TEST--
2Test session_commit() 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_commit() : variation ***\n";
15
16var_dump(ini_get('session.use_strict_mode'));
17var_dump(session_id("session-commit-variation4"));
18var_dump(session_start());
19var_dump(session_id());
20var_dump(session_commit());
21var_dump(session_id());
22var_dump(session_start());
23var_dump(ini_get('session.use_strict_mode'));
24var_dump(session_id());
25var_dump(session_commit());
26var_dump(session_id());
27var_dump(session_start());
28var_dump(session_id());
29var_dump(session_commit());
30var_dump(session_id());
31var_dump(session_start());
32var_dump(session_destroy());
33var_dump(ini_get('session.use_strict_mode'));
34
35echo "Done";
36ob_end_flush();
37?>
38--EXPECT--
39*** Testing session_commit() : variation ***
40string(1) "0"
41string(0) ""
42bool(true)
43string(25) "session-commit-variation4"
44bool(true)
45string(25) "session-commit-variation4"
46bool(true)
47string(1) "0"
48string(25) "session-commit-variation4"
49bool(true)
50string(25) "session-commit-variation4"
51bool(true)
52string(25) "session-commit-variation4"
53bool(true)
54string(25) "session-commit-variation4"
55bool(true)
56bool(true)
57string(1) "0"
58Done
59