xref: /PHP-8.0/ext/session/tests/bug66481.phpt (revision f293e6b9)
1--TEST--
2Bug #66481: Calls to session_name() segfault when session.name is null.
3--INI--
4session.name=
5error_log=
6--SKIPIF--
7<?php include('skipif.inc'); ?>
8--FILE--
9<?php
10ob_start();
11
12var_dump(session_name("foo"));
13var_dump(session_name("bar"));
14?>
15--EXPECT--
16Warning: PHP Startup: session.name "" cannot be numeric or empty in Unknown on line 0
17string(9) "PHPSESSID"
18string(3) "foo"
19