]> granicus.if.org Git - php/commitdiff
Fixed test if PATH is not set
authorXinchen Hui <laruence@gmail.com>
Tue, 8 Dec 2015 16:26:04 +0000 (08:26 -0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 8 Dec 2015 16:26:04 +0000 (08:26 -0800)
ext/filter/tests/bug71063.phpt

index 36807aac3ce3259eb75daeaafc4a1af093e51358..c399817cd0fc253218e23fd2094acb732d785a32 100644 (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)
\ No newline at end of file
+bool(true)