1--TEST-- 2Bug #52209 (INPUT_ENV returns NULL for set variables (CLI)) 3--EXTENSIONS-- 4filter 5--SKIPIF-- 6<?php 7/* This test makes no sense on windows as an empty variable 8 would never show up in the "set" list. Which means, it's 9 always undefined in PHP. */ 10if(substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); 11if (empty($_ENV['PWD'])) die('skip PWD is empty'); 12?> 13--INI-- 14variables_order=GPCSE 15--FILE-- 16<?php 17 var_dump(filter_input(INPUT_ENV, 'PWD')); 18?> 19--EXPECTF-- 20string(%d) "%s" 21