Home
last modified time | relevance | path

Searched refs:FILTER_VALIDATE_INT (Results 1 – 25 of 27) sorted by relevance

12

/PHP-8.2/ext/filter/tests/
H A D013.phpt7 var_dump(filter_var(" 234", FILTER_VALIDATE_INT));
8 var_dump(filter_var("234 ", FILTER_VALIDATE_INT));
9 var_dump(filter_var(" 234 ", FILTER_VALIDATE_INT));
10 var_dump(filter_var("0xff", FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX)));
11 var_dump(filter_var("0Xff", FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX)));
12 var_dump(filter_var("0xFF", FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX)));
13 var_dump(filter_var("0XFF", FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX)));
14 var_dump(filter_var("07", FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_OCTAL)));
17 var_dump(filter_var("08", FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_OCTAL)));
38 var_dump(filter_var("0ff", FILTER_VALIDATE_INT));
[all …]
H A Dsurprising_integer_literals.phpt8 var_dump(filter_var('0x', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
9 var_dump(filter_var('0xg', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
10 var_dump(filter_var('0X', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
11 var_dump(filter_var('0Xg', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
12 var_dump(filter_var('', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
14 var_dump(filter_var('0o', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_OCTAL));
15 var_dump(filter_var('0og', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_OCTAL));
16 var_dump(filter_var('0O', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_OCTAL));
18 var_dump(filter_var('O', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_OCTAL));
19 var_dump(filter_var('Og', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_OCTAL));
[all …]
H A D038.phpt9 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL));
13 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL));
17 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_FORCE_AR…
23 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_REQUIRE_…
27 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_REQUIRE_…
31 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_FORCE_AR…
35 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_FORCE_AR…
H A Dfilter_data.phpt11 $data = "-123"; var_dump(filter_var($data, FILTER_VALIDATE_INT));
12 $data = "0"; var_dump(filter_var($data, FILTER_VALIDATE_INT));
13 $data = "-0"; var_dump(filter_var($data, FILTER_VALIDATE_INT));
14 $data = "+0"; var_dump(filter_var($data, FILTER_VALIDATE_INT));
15 $data = "123"; var_dump(filter_var($data, FILTER_VALIDATE_INT));
16 $data = -123; var_dump(filter_var($data, FILTER_VALIDATE_INT));
17 $data = 0; var_dump(filter_var($data, FILTER_VALIDATE_INT));
18 $data = -0; var_dump(filter_var($data, FILTER_VALIDATE_INT));
19 $data = +0; var_dump(filter_var($data, FILTER_VALIDATE_INT));
20 $data = 123; var_dump(filter_var($data, FILTER_VALIDATE_INT));
[all …]
H A Dbug80584.phpt7 var_dump(filter_var('0x', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
8 var_dump(filter_var('0X', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
9 var_dump(filter_var('', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
10 var_dump(filter_var('0', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
H A D045.phpt8 $ret = filter_var("0xff", FILTER_VALIDATE_INT, $a);
13 $ret = filter_var("0xff", FILTER_VALIDATE_INT, $a);
15 $a = array("test"=>array("filter"=>(string)FILTER_VALIDATE_INT, "flags"=>(string)FILTER_FLAG_ALLOW_…
17 … 255 && is_string($a["test"]["filter"]) && $a["test"]["filter"] == FILTER_VALIDATE_INT)?"ok\n":"bu…
19 $a = array("test"=>(string)FILTER_VALIDATE_INT);
21 echo ($ret["test"] === 255 && is_string($a["test"]) && $a["test"] == FILTER_VALIDATE_INT)?"ok\n":"b…
H A D035.phpt11 $ret = filter_input(INPUT_GET, 'a', FILTER_VALIDATE_INT);
14 $ret = filter_input(INPUT_GET, 'a', FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL));
17 $ret = filter_input(INPUT_GET, 'ar', FILTER_VALIDATE_INT, array('flags'=>FILTER_REQUIRE_ARRAY));
20 $ret = filter_input(INPUT_GET, 'ar', FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FI…
H A D032.phpt17 'component' => array(//'filter' => FILTER_VALIDATE_INT,
25 'doesnotexist' => FILTER_VALIDATE_INT,
26 'testscalar' => FILTER_VALIDATE_INT,
28 'filter' => FILTER_VALIDATE_INT,
H A D047.phpt22 var_dump(is_long(filter_var('0'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_OCTAL))));
25 var_dump(is_long(filter_var('0'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_OCTAL))));
28 var_dump(is_long(filter_var('0'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_OCTAL))));
31 var_dump(filter_var('0'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_OCTAL)));
H A D048.phpt26 var_dump(is_long(filter_var('0x'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX))));
29 var_dump(is_long(filter_var('0x'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX))));
32 var_dump(is_long(filter_var('0x'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX))));
35 var_dump(filter_var('0x'.$s, FILTER_VALIDATE_INT, array("flags"=>FILTER_FLAG_ALLOW_HEX)));
H A Dbug47745.phpt2 Bug #47745 (FILTER_VALIDATE_INT doesn't allow minimum integer)
9 var_dump(filter_var($s, FILTER_VALIDATE_INT));
H A Dbug73054.phpt8 filter_var(new stdClass, FILTER_VALIDATE_INT, [
11 filter_var(new stdClass, FILTER_VALIDATE_INT, [
H A D037.phpt14 echo filter_input(INPUT_GET, 'b', FILTER_VALIDATE_INT);
26 'b' => FILTER_VALIDATE_INT
H A D036.phpt15 $args["test1"] = FILTER_VALIDATE_INT;
16 $args["test2"] = FILTER_VALIDATE_INT;
H A D051.phpt8 var_dump(filter_var("123asd", FILTER_VALIDATE_INT, array("options"=>array("default"=>$default))));
H A Dfilter_var_array_with_ref.phpt10 var_dump(filter_var_array($array2, FILTER_VALIDATE_INT));
H A Dbug8315.phpt9 var_dump(filter_var($var, FILTER_VALIDATE_INT));
H A Dbug50632.phpt7 $foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array('flags' => FILTER_REQUIRE_SCALAR, …
H A Dbug76366.phpt14 'filter' => FILTER_VALIDATE_INT,
H A Dfilter_null_on_failure.phpt9 var_dump(filter_var("invalid", FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE));
H A D010.phpt10 …r_var(array(1,"1","", "-23234", "text", "asdf234asdfgs", array()), FILTER_VALIDATE_INT, FILTER_REQ…
H A D011.phpt23 var_dump(filter_input(INPUT_POST, "d", FILTER_VALIDATE_INT));
H A D046.phpt25 $f = filter_var($val, FILTER_VALIDATE_INT);
/PHP-8.2/ext/filter/
H A Dfilter_private.h59 #define FILTER_VALIDATE_INT 0x0101 macro
H A Dfilter.stub.php62 const FILTER_VALIDATE_INT = UNKNOWN; define

Completed in 66 milliseconds

12