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
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() : error functionality ***\n";
21
22$directory = __DIR__;
23var_dump(session_save_path());
24var_dump(session_save_path($directory));
25var_dump(session_save_path());
26
27echo "Done";
28ob_end_flush();
29?>
30--EXPECTF--
31*** Testing session_save_path() : error functionality ***
32string(0) ""
33string(0) ""
34string(%d) "%s"
35Done
36