QA - filter_input - LCOV - FILTER_NULL_ON_FAILURE

Closes GH-9737.
This commit is contained in:
juan-morales 2022-10-12 13:44:21 -03:00 committed by Christoph M. Becker
parent a4fd2609ce
commit fca9e23a6f
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -9,10 +9,17 @@ var_dump(filter_input(INPUT_GET, "test"));
var_dump(filter_input(INPUT_POST, "test"));
var_dump(filter_input(INPUT_COOKIE, ""));
var_dump(filter_input(INPUT_GET, "test", FILTER_DEFAULT, FILTER_NULL_ON_FAILURE));
var_dump(filter_input(INPUT_POST, "test", FILTER_DEFAULT, FILTER_NULL_ON_FAILURE));
var_dump(filter_input(INPUT_COOKIE, "", FILTER_DEFAULT, FILTER_NULL_ON_FAILURE));
echo "Done\n";
?>
--EXPECT--
NULL
NULL
NULL
bool(false)
bool(false)
bool(false)
Done