mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
commit
feb4eb850d
17
ext/session/tests/bug66481-win32.phpt
Normal file
17
ext/session/tests/bug66481-win32.phpt
Normal file
@ -0,0 +1,17 @@
|
||||
--TEST--
|
||||
Bug #66481: Calls to session_name() segfault when session.name is null, Windows.
|
||||
--INI--
|
||||
session.name=
|
||||
--SKIPIF--
|
||||
<?php include('skipif.inc'); ?>
|
||||
<?php if(substr(PHP_OS, 0, 3) != "WIN") die("skip Windows only"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
var_dump(session_name("foo"));
|
||||
var_dump(session_name("bar"));
|
||||
--EXPECTF--
|
||||
Warning: PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
|
||||
string(9) "PHPSESSID"
|
||||
string(3) "foo"
|
||||
PHP Warning: PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
|
@ -4,6 +4,7 @@ Bug #66481: Calls to session_name() segfault when session.name is null.
|
||||
session.name=
|
||||
--SKIPIF--
|
||||
<?php include('skipif.inc'); ?>
|
||||
<?php if(substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user