File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
session /
tests /
session_save_path_variation1.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: --INI--
4: session.gc_probability=0
5: session.save_path=
6: session.name=PHPSESSID
7: --SKIPIF--
8: <?php include('skipif.inc'); ?>
9: --FILE--
10: <?php
11:
12: ob_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:
20: echo "*** Testing session_save_path() : variation ***\n";
21:
22: $directory = dirname(__FILE__);
23: var_dump(session_save_path());
24: var_dump(session_start());
25: var_dump(session_save_path());
26: var_dump(session_save_path($directory));
27: var_dump(session_save_path());
28: var_dump(session_destroy());
29: var_dump(session_save_path());
30:
31: echo "Done";
32: ob_end_flush();
33: ?>
34: --EXPECTF--
35: *** Testing session_save_path() : variation ***
36: string(0) ""
37: bool(true)
38: string(0) ""
39: string(0) ""
40: string(%d) "%s"
41: bool(true)
42: string(%d) "%s"
43: Done
44:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>