com php-src: Fix bug ext\filter\tests\bug52209.phpt fails: ext/filter/tests/bug52209.phpt

From: Date: Mon, 30 Apr 2012 08:25:54 +0000
Subject: com php-src: Fix bug ext\filter\tests\bug52209.phpt fails: ext/filter/tests/bug52209.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-68894@lists.php.net to get a copy of this message
Commit: 8249581a2df0c2546721f6a55e58ba9d5e72653b Author: Anatoliy Belsky <ab@php.net> Mon, 30 Apr 2012 10:25:54 +0200 Parents: a601605f14ce12977b2d3771fd19421ad2aa2f47 Branches: PHP-5.3 PHP-5.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8249581a2df0c2546721f6a55e58ba9d5e72653b Log: Fix bug ext\filter\tests\bug52209.phpt fails Bugs: https://bugs.php.net/52209 Changed paths: M ext/filter/tests/bug52209.phpt Diff: diff --git a/ext/filter/tests/bug52209.phpt b/ext/filter/tests/bug52209.phpt index bf2ed6c..79db749 100644 --- a/ext/filter/tests/bug52209.phpt +++ b/ext/filter/tests/bug52209.phpt @@ -1,7 +1,13 @@ --TEST-- Bug #52209 (INPUT_ENV returns NULL for set variables (CLI)) --SKIPIF-- -<?php if (!extension_loaded("filter") || !empty($_ENV['PWD'])) die("skip"); ?> +<?php +/* This test makes no sense on windows as an empty variable + would never show up in the "set" list. Which means, it's + always undefined in PHP. */ +if(substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); +if (!extension_loaded("filter") || !empty($_ENV['PWD'])) die("skip"); +?> --INI-- variables_order=GPCSE --FILE--

« previous php.cvs (#68894) next »