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