Fixed test if PATH is not set

This commit is contained in:
Xinchen Hui 2015-12-08 08:26:04 -08:00
parent 3427c122bf
commit c47b49c9b5

View File

@ -1,7 +1,9 @@
--TEST--
Bug #71063 filter_input(INPUT_ENV, ..) does not work
Bug #71063 (filter_input(INPUT_ENV, ..) does not work)
--SKIPIF--
<?php if (!extension_loaded("filter")) die("skip"); ?>
--ENV--
PATH=/
--FILE--
<?php
var_dump(count($_ENV['PATH']) > 0);
@ -9,4 +11,4 @@ var_dump(count(filter_input(INPUT_ENV, 'PATH')) > 0);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)