1--TEST--
2Test session_register() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_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
16echo "*** Testing session_register() : variation ***\n";
17
18$blah = "Hello World!";
19var_dump(session_start());
20var_dump($_SESSION);
21var_dump(session_register("blah"));
22var_dump($_SESSION);
23var_dump(session_destroy());
24var_dump($_SESSION);
25
26echo "Done";
27ob_end_flush();
28?>
29--EXPECTF--
30*** Testing session_register() : variation ***
31bool(true)
32array(0) {
33}
34
35Deprecated: Function session_register() is deprecated in %s on line %d
36bool(true)
37array(1) {
38  ["blah"]=>
39  NULL
40}
41bool(true)
42array(1) {
43  ["blah"]=>
44  NULL
45}
46Done
47