xref: /PHP-8.3/ext/session/tests/gh16385.phpt (revision 7cdd1302)
1--TEST--
2GH-16385 (Unexpected null returned by session_set_cookie_params)
3--EXTENSIONS--
4session
5--INI--
6session.use_cookies=0
7--FILE--
8<?php
9var_dump(session_set_cookie_params(3600, "/foo"));
10?>
11--EXPECTF--
12Warning: session_set_cookie_params(): Session cookies cannot be used when session.use_cookies is disabled in %s on line %d
13bool(false)
14