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