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