File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
session /
tests /
session_start_variation9.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_start() function : variation
3: --SKIPIF--
4: <?php include('skipif.inc'); ?>
5: --INI--
6: session.auto_start=1
7: --FILE--
8: <?php
9:
10: ob_start();
11:
12: /*
13: * Prototype : bool session_start(void)
14: * Description : Initialize session data
15: * Source code : ext/session/session.c
16: */
17:
18: echo "*** Testing session_start() : variation ***\n";
19:
20: var_dump(session_id());
21: var_dump(session_start());
22: var_dump(session_id());
23: var_dump(session_destroy());
24: var_dump(session_id());
25:
26: echo "Done";
27: ob_end_flush();
28: ?>
29: --EXPECTF--
30: *** Testing session_start() : variation ***
31: string(%d) "%s"
32:
33: Notice: A session had already been started - ignoring session_start() in %s on line %d
34: bool(true)
35: string(%d) "%s"
36: bool(true)
37: string(0) ""
38: Done
39:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>