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