Skip to content

Commit

Permalink
Fixed test if PATH is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Dec 8, 2015
1 parent 3427c12 commit c47b49c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/filter/tests/bug71063.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--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);
var_dump(count(filter_input(INPUT_ENV, 'PATH')) > 0);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)

0 comments on commit c47b49c

Please sign in to comment.