summaryrefslogtreecommitdiff
path: root/ext/filter
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-04-30 10:25:54 +0200
committerAnatoliy Belsky <ab@php.net>2012-04-30 10:25:54 +0200
commit8249581a2df0c2546721f6a55e58ba9d5e72653b (patch)
treec55dee0c708845953bd14543fa7bb7ac3eaae62a /ext/filter
parenta601605f14ce12977b2d3771fd19421ad2aa2f47 (diff)
downloadphp-git-8249581a2df0c2546721f6a55e58ba9d5e72653b.tar.gz
Fix bug ext\filter\tests\bug52209.phpt fails
Diffstat (limited to 'ext/filter')
-rw-r--r--ext/filter/tests/bug52209.phpt8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/filter/tests/bug52209.phpt b/ext/filter/tests/bug52209.phpt
index bf2ed6cf3f..79db749454 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--