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