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_write_close(void)
14 * Description : Write session data and end session
15 * Source code : ext/session/session.c
16 */
17
18echo "*** Testing session_write_close() : variation ***\n";
19
20var_dump($_SESSION);
21var_dump(session_write_close());
22var_dump($_SESSION);
23var_dump(session_start());
24var_dump(session_destroy());
25
26echo "Done";
27ob_end_flush();
28?>
29--EXPECT--
30*** Testing session_write_close() : variation ***
31array(0) {
32}
33bool(true)
34array(0) {
35}
36bool(true)
37bool(true)
38Done
39