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_commit());
20var_dump(session_commit());
21var_dump(session_commit());
22var_dump(session_commit());
23var_dump(session_commit());
24var_dump(session_start());
25var_dump(session_destroy());
26
27echo "Done";
28ob_end_flush();
29?>
30--EXPECTF--
31*** Testing session_commit() : variation ***
32bool(true)
33bool(true)
34bool(false)
35bool(false)
36bool(false)
37bool(false)
38bool(true)
39bool(true)
40Done
41