xref: /PHP-7.2/ext/session/tests/bug74941.phpt (revision 9b9184a4)
1--TEST--
2Bug #74941 session_start() triggers a warning after headers have been sent but cookies are not used
3--SKIPIF--
4<?php
5include('skipif.inc');
6?>
7--FILE--
8<?php
9
10ini_set('session.use_cookies', false);
11ini_set('session.cache_limiter', false);
12
13echo ".\n";
14
15session_id('BUG74941');
16var_dump(session_start());
17?>
18===DONE===
19--EXPECT--
20.
21bool(true)
22===DONE===
23