com php-src: forked the test for bug #66481: ext/session/tests/bug66481-win32.phpt ext/session/tests/bug66481.phpt

From: Date: Fri, 17 Jan 2014 02:30:42 +0000
Subject: com php-src: forked the test for bug #66481: ext/session/tests/bug66481-win32.phpt ext/session/tests/bug66481.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75652@lists.php.net to get a copy of this message
Commit: a218a8b9174e5daf8b34c4cb3eca23977e7f66cf Author: Anatol Belski <ab@php.net> Fri, 17 Jan 2014 03:30:42 +0100 Parents: b777248ded69289b84d645ba2f36dbc207c77ff7 Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a218a8b9174e5daf8b34c4cb3eca23977e7f66cf Log: forked the test for bug #66481 Bugs: https://bugs.php.net/66481 Changed paths: A ext/session/tests/bug66481-win32.phpt M ext/session/tests/bug66481..phpt Diff: diff --git a/ext/session/tests/bug66481-win32.phpt b/ext/session/tests/bug66481-win32.phpt new file mode 100644 index 0000000..cf06cb6 --- /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 cf6ad6a..5525ae8 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

« previous php.cvs (#75652) next »