1--TEST--
2Test session_name() function : error functionality
3--INI--
4session.save_path=
5session.name=PHPSESSID
6session.save_handler=files
7--SKIPIF--
8<?php include('skipif.inc'); ?>
9--FILE--
10<?php
11
12ob_start();
13
14echo "*** Testing session_name() : error functionality ***\n";
15
16var_dump(session_name());
17var_dump(session_name("blah"));
18var_dump(session_start());
19var_dump(session_name());
20var_dump(session_destroy());
21var_dump(session_name());
22
23echo "Done";
24ob_end_flush();
25?>
26--EXPECT--
27*** Testing session_name() : error functionality ***
28string(9) "PHPSESSID"
29string(9) "PHPSESSID"
30bool(true)
31string(4) "blah"
32bool(true)
33string(4) "blah"
34Done
35