mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
QA - filter_input - LCOV - FILTER_NULL_ON_FAILURE
Closes GH-9737.
This commit is contained in:
parent
a4fd2609ce
commit
fca9e23a6f
1 changed files with 7 additions and 0 deletions
|
@ -9,10 +9,17 @@ var_dump(filter_input(INPUT_GET, "test"));
|
||||||
var_dump(filter_input(INPUT_POST, "test"));
|
var_dump(filter_input(INPUT_POST, "test"));
|
||||||
var_dump(filter_input(INPUT_COOKIE, ""));
|
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";
|
echo "Done\n";
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
NULL
|
NULL
|
||||||
NULL
|
NULL
|
||||||
NULL
|
NULL
|
||||||
|
bool(false)
|
||||||
|
bool(false)
|
||||||
|
bool(false)
|
||||||
Done
|
Done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue