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