1--TEST--
2Test session_save_path() function : basic functionality
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
14echo "*** Testing session_save_path() : error functionality ***\n";
15
16$directory = __DIR__;
17var_dump(session_save_path());
18var_dump(session_save_path($directory));
19var_dump(session_save_path());
20
21echo "Done";
22ob_end_flush();
23?>
24--EXPECTF--
25*** Testing session_save_path() : error functionality ***
26string(0) ""
27string(0) ""
28string(%d) "%s"
29Done
30