1--TEST--
2Test session_id() function : basic functionality
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_id() : basic functionality ***\n";
13
14var_dump(session_id());
15var_dump(session_id("test"));
16var_dump(session_id());
17var_dump(session_id("1234567890"));
18var_dump(session_id());
19// Turn off strice mode, since it does not allow uninitialized session ID
20ini_set('session.use_strict_mode',false);
21var_dump(session_start());
22var_dump(session_id());
23var_dump(session_destroy());
24var_dump(session_id());
25
26echo "Done";
27ob_end_flush();
28?>
29--EXPECT--
30*** Testing session_id() : basic functionality ***
31string(0) ""
32string(0) ""
33string(4) "test"
34string(4) "test"
35string(10) "1234567890"
36bool(true)
37string(10) "1234567890"
38bool(true)
39string(0) ""
40Done
41