xref: /PHP-5.3/Zend/tests/unset_cv05.phpt (revision 8deefa87)
1--TEST--
2unset() CV 5 (indirect unset() of global variable in session_start())
3--INI--
4register_long_arrays=1
5session.auto_start=0
6session.save_handler=files
7--SKIPIF--
8<?php
9
10include(dirname(__FILE__).'/../../ext/session/tests/skipif.inc');
11
12?>
13--FILE--
14<?php
15$HTTP_SESSION_VARS = "ok\n";
16echo $HTTP_SESSION_VARS;
17session_start();
18echo $HTTP_SESSION_VARS;
19echo "\nok\n";
20?>
21--EXPECTF--
22Deprecated: Directive 'register_long_arrays' is deprecated in PHP %d.%d and greater in Unknown on line 0
23ok
24
25Warning: session_start(): Cannot send session cookie - headers already sent by (output started at %sunset_cv05.php on line %d
26
27Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at %sunset_cv05.php:%d) in %sunset_cv05.php on line %d
28Array
29ok
30