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