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