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