Annotation of embedaddon/php/ext/session/tests/session_register_variation3.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test session_register() function : variation
3: --SKIPIF--
4: <?php include('skipif.inc'); ?>
5: --FILE--
6: <?php
7:
8: ob_start();
9:
10: /*
11: * Prototype : bool session_register(mixed $name [,mixed $...])
12: * Description : Register one or more global variables with the current session
13: * Source code : ext/session/session.c
14: */
15:
16: echo "*** Testing session_register() : variation ***\n";
17:
18: $blah = "Hello World!";
19: var_dump(session_start());
20: var_dump($_SESSION);
21: var_dump(session_register("blah"));
22: var_dump($_SESSION);
23: var_dump(session_destroy());
24: var_dump($_SESSION);
25:
26: echo "Done";
27: ob_end_flush();
28: ?>
29: --EXPECTF--
30: *** Testing session_register() : variation ***
31: bool(true)
32: array(0) {
33: }
34:
35: Deprecated: Function session_register() is deprecated in %s on line %d
36: bool(true)
37: array(1) {
38: ["blah"]=>
39: NULL
40: }
41: bool(true)
42: array(1) {
43: ["blah"]=>
44: NULL
45: }
46: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>