1--TEST--
2Test session_save_path() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8session.save_handler=files
9session.gc_probability=0
10--FILE--
11<?php
12
13ob_start();
14
15echo "*** Testing session_save_path() : variation ***\n";
16
17ini_set("session.save_path", "/blah");
18var_dump(ini_get("session.save_path"));
19var_dump(session_start());
20var_dump(ini_get("session.save_path"));
21var_dump(session_destroy());
22var_dump(ini_get("session.save_path"));
23
24echo "Done";
25ob_end_flush();
26?>
27--EXPECTF--
28*** Testing session_save_path() : variation ***
29string(5) "/blah"
30
31Warning: session_start(): open(%sblah%e%s, O_RDWR) failed: No such file or directory (2) in %s on line %d
32
33Warning: session_start(): Failed to read session data: files (path: %sblah) in %s on line %d
34bool(false)
35string(5) "/blah"
36
37Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
38bool(false)
39string(5) "/blah"
40Done
41