Home
last modified time | relevance | path

Searched refs:FILTER_VALIDATE_BOOLEAN (Results 1 – 8 of 8) sorted by relevance

/PHP-7.3/ext/filter/tests/
H A D014.phpt2 filter_var() and FILTER_VALIDATE_BOOLEAN
17 var_dump(filter_var("no", FILTER_VALIDATE_BOOLEAN));
18 var_dump(filter_var(NULL, FILTER_VALIDATE_BOOLEAN));
19 var_dump(filter_var($t, FILTER_VALIDATE_BOOLEAN));
21 var_dump(filter_var("yes", FILTER_VALIDATE_BOOLEAN));
24 var_dump(filter_var("off", FILTER_VALIDATE_BOOLEAN));
25 var_dump(filter_var("on", FILTER_VALIDATE_BOOLEAN));
26 var_dump(filter_var("0", FILTER_VALIDATE_BOOLEAN));
27 var_dump(filter_var("1", FILTER_VALIDATE_BOOLEAN));
29 var_dump(filter_var("", FILTER_VALIDATE_BOOLEAN));
[all …]
H A Dbug49510.phpt7 var_dump(filter_var(false, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
8 var_dump(filter_var(0, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
9 var_dump(filter_var("0", FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
10 var_dump(filter_var("off", FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
11 var_dump(filter_var("", FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
12 var_dump(filter_var("false", FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
13 var_dump(filter_var("no", FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
15 var_dump(filter_var(true, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
16 var_dump(filter_var(1, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
17 var_dump(filter_var("1", FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
[all …]
H A Dfilter_data.phpt35 $data = "on"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
36 $data = "off"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
37 $data = "yes"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
38 $data = "no"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
39 $data = "true"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
40 $data = "false"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
41 $data = "1"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
42 $data = "0"; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
43 $data = 1; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
44 $data = 0; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN));
[all …]
H A Dbug67167.02.phpt2 Bug #67167: filter_var(null,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE) returns null
9 FILTER_VALIDATE_BOOLEAN,
H A Dbug67167.01.phpt9 FILTER_VALIDATE_BOOLEAN,
H A D034.phpt25 $res =filter_var($val, FILTER_VALIDATE_BOOLEAN);
/PHP-7.3/ext/filter/
H A Dfilter_private.h61 #define FILTER_VALIDATE_BOOLEAN 0x0102 macro
H A Dfilter.c41 { "boolean", FILTER_VALIDATE_BOOLEAN, php_filter_boolean },
236 …REGISTER_LONG_CONSTANT("FILTER_VALIDATE_BOOLEAN", FILTER_VALIDATE_BOOLEAN, CONST_CS | CONST_PERSIS… in PHP_MINIT_FUNCTION()

Completed in 34 milliseconds