1--TEST--
2Test session_name() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.name=blah
7--FILE--
8<?php
9
10ob_start();
11
12/*
13 * Prototype : string session_name([string $name])
14 * Description : Get and/or set the current session name
15 * Source code : ext/session/session.c
16 */
17
18echo "*** Testing session_name() : variation ***\n";
19
20var_dump(session_name());
21var_dump(session_name("blah"));
22var_dump(session_start());
23var_dump(session_name());
24var_dump(session_destroy());
25var_dump(session_name());
26
27echo "Done";
28ob_end_flush();
29?>
30--EXPECTF--
31*** Testing session_name() : variation ***
32string(4) "blah"
33string(4) "blah"
34bool(true)
35string(4) "blah"
36bool(true)
37string(4) "blah"
38Done
39
40