File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
session /
tests /
session_module_name_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, 5 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_module_name() function : variation
3: --SKIPIF--
4: <?php include('skipif.inc'); ?>
5: --FILE--
6: <?php
7:
8: ob_start();
9:
10: /*
11: * Prototype : string session_module_name([string $module])
12: * Description : Get and/or set the current session module
13: * Source code : ext/session/session.c
14: */
15:
16: echo "*** Testing session_module_name() : variation ***\n";
17: var_dump(session_module_name("blah"));
18: var_dump(session_start());
19: var_dump(session_module_name());
20: var_dump(session_destroy());
21: var_dump(session_module_name());
22:
23: echo "Done";
24: ob_end_flush();
25: ?>
26: --EXPECTF--
27: *** Testing session_module_name() : variation ***
28:
29: Warning: session_module_name(): Cannot find named PHP session module (blah) in %s on line %d
30: bool(false)
31: bool(true)
32: string(%d) "%s"
33: bool(true)
34: string(%d) "%s"
35: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>