File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
session /
tests /
session_save_path_variation2.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:01 2012 UTC (12 years, 4 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Test session_save_path() function : variation
3: --SKIPIF--
4: <?php include('skipif.inc'); ?>
5: --INI--
6: session.save_handler=files
7: session.gc_probability=0
8: --FILE--
9: <?php
10:
11: ob_start();
12:
13: /*
14: * Prototype : string session_save_path([string $path])
15: * Description : Get and/or set the current session save path
16: * Source code : ext/session/session.c
17: */
18:
19: echo "*** Testing session_save_path() : variation ***\n";
20:
21: ini_set("session.save_path", "/blah");
22: var_dump(ini_get("session.save_path"));
23: var_dump(session_start());
24: var_dump(ini_get("session.save_path"));
25: var_dump(session_destroy());
26: var_dump(ini_get("session.save_path"));
27:
28: echo "Done";
29: ob_end_flush();
30: ?>
31: --EXPECTF--
32: *** Testing session_save_path() : variation ***
33: string(5) "/blah"
34:
35: Warning: session_start(): open(%s, O_RDWR) failed: No such file or directory (2) in %s on line %d
36: bool(true)
37: string(5) "/blah"
38: bool(true)
39: string(5) "/blah"
40: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>