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