1--TEST--
2Test session_encode() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_encode() : variation ***\n";
13
14var_dump(session_encode());
15var_dump(session_start());
16var_dump(session_encode());
17var_dump(session_write_close());
18var_dump(session_encode());
19var_dump(session_start());
20var_dump(session_encode());
21var_dump(session_destroy());
22var_dump(session_encode());
23
24echo "Done";
25ob_end_flush();
26?>
27--EXPECTF--
28*** Testing session_encode() : variation ***
29
30Warning: session_encode(): Cannot encode non-existent session in %s on line %d
31bool(false)
32bool(true)
33bool(false)
34bool(true)
35bool(false)
36bool(true)
37bool(false)
38bool(true)
39
40Warning: session_encode(): Cannot encode non-existent session in %s on line %d
41bool(false)
42Done
43