Skip to content

Commit fca9e23

Browse files
juan-moralescmb69
authored andcommitted
QA - filter_input - LCOV - FILTER_NULL_ON_FAILURE
Closes GH-9737.
1 parent a4fd260 commit fca9e23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/filter/tests/012.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ var_dump(filter_input(INPUT_GET, "test"));
99
var_dump(filter_input(INPUT_POST, "test"));
1010
var_dump(filter_input(INPUT_COOKIE, ""));
1111

12+
var_dump(filter_input(INPUT_GET, "test", FILTER_DEFAULT, FILTER_NULL_ON_FAILURE));
13+
var_dump(filter_input(INPUT_POST, "test", FILTER_DEFAULT, FILTER_NULL_ON_FAILURE));
14+
var_dump(filter_input(INPUT_COOKIE, "", FILTER_DEFAULT, FILTER_NULL_ON_FAILURE));
15+
1216
echo "Done\n";
1317
?>
1418
--EXPECT--
1519
NULL
1620
NULL
1721
NULL
22+
bool(false)
23+
bool(false)
24+
bool(false)
1825
Done

0 commit comments

Comments
 (0)