diff options
author | Anatol Belski <ab@php.net> | 2014-01-17 03:30:42 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-01-17 03:30:42 +0100 |
commit | a218a8b9174e5daf8b34c4cb3eca23977e7f66cf (patch) | |
tree | 7e0c6fc1faed6959053c4f17b09a09bfb85e5a11 | |
parent | b777248ded69289b84d645ba2f36dbc207c77ff7 (diff) | |
download | php-git-a218a8b9174e5daf8b34c4cb3eca23977e7f66cf.tar.gz |
forked the test for bug #66481
-rw-r--r-- | ext/session/tests/bug66481-win32.phpt | 17 | ||||
-rw-r--r-- | ext/session/tests/bug66481.phpt | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ext/session/tests/bug66481-win32.phpt b/ext/session/tests/bug66481-win32.phpt new file mode 100644 index 0000000000..cf06cb6b95 --- /dev/null +++ b/ext/session/tests/bug66481-win32.phpt @@ -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 diff --git a/ext/session/tests/bug66481.phpt b/ext/session/tests/bug66481.phpt index cf6ad6a8d6..5525ae8a38 100644 --- a/ext/session/tests/bug66481.phpt +++ b/ext/session/tests/bug66481.phpt @@ -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 |