Skip to content

Commit 8249581

Browse files
committed
Fix bug ext\filter\tests\bug52209.phpt fails
1 parent a601605 commit 8249581

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ext/filter/tests/bug52209.phpt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
--TEST--
22
Bug #52209 (INPUT_ENV returns NULL for set variables (CLI))
33
--SKIPIF--
4-
<?php if (!extension_loaded("filter") || !empty($_ENV['PWD'])) die("skip"); ?>
4+
<?php
5+
/* This test makes no sense on windows as an empty variable
6+
would never show up in the "set" list. Which means, it's
7+
always undefined in PHP. */
8+
if(substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows");
9+
if (!extension_loaded("filter") || !empty($_ENV['PWD'])) die("skip");
10+
?>
511
--INI--
612
variables_order=GPCSE
713
--FILE--

0 commit comments

Comments
 (0)