1--TEST--
2Test session_write_close() function : basic functionality
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() : basic functionality ***\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_destroy());
25var_dump($_SESSION);
26
27echo "Done";
28ob_end_flush();
29?>
30--EXPECTF--
31*** Testing session_write_close() : basic functionality ***
32bool(true)
33array(0) {
34}
35NULL
36array(0) {
37}
38bool(true)
39array(0) {
40}
41bool(true)
42array(0) {
43}
44Done
45
46