1--TEST--
2Test session_encode() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.auto_start=1
7--FILE--
8<?php
9
10ob_start();
11
12/*
13 * Prototype : string session_encode(void)
14 * Description : Encodes the current session data as a string
15 * Source code : ext/session/session.c
16 */
17
18echo "*** Testing session_encode() : variation ***\n";
19
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 ***
29bool(false)
30bool(true)
31
32Warning: session_encode(): Cannot encode non-existent session in %s on line %d
33bool(false)
34Done
35