Home
last modified time | relevance | path

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

/PHP-8.0/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 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.phpt9 var_dump(filter_var('0x', 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('', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX));
12 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.phpt10 filter_var(new stdClass, FILTER_VALIDATE_INT, [
13 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.phpt16 'filter' => FILTER_VALIDATE_INT,
H A D010.phpt10 …r_var(array(1,"1","", "-23234", "text", "asdf234asdfgs", array()), FILTER_VALIDATE_INT, FILTER_REQ…
H A D011.phpt25 var_dump(filter_input(INPUT_POST, "d", FILTER_VALIDATE_INT));
H A D046.phpt25 $f = filter_var($val, FILTER_VALIDATE_INT);
/PHP-8.0/ext/filter/
H A Dfilter_private.h58 #define FILTER_VALIDATE_INT 0x0101 macro
H A Dfilter.c39 { "int", FILTER_VALIDATE_INT, php_filter_int },
175 REGISTER_LONG_CONSTANT("FILTER_VALIDATE_INT", FILTER_VALIDATE_INT, CONST_CS | CONST_PERSISTENT); in PHP_MINIT_FUNCTION()

Completed in 23 milliseconds