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