xref: /PHP-5.6/ext/filter/tests/bug52209.phpt (revision 8249581a)
1--TEST--
2Bug #52209 (INPUT_ENV returns NULL for set variables (CLI))
3--SKIPIF--
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. */
8if(substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows");
9if (!extension_loaded("filter") || !empty($_ENV['PWD'])) die("skip");
10?>
11--INI--
12variables_order=GPCSE
13--FILE--
14<?php
15	var_dump(filter_input(INPUT_ENV, 'PWD'));
16?>
17--EXPECTF--
18string(%d) "%s"
19