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