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