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