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