/PHP-8.2/ext/filter/tests/ |
H A D | 013.phpt | 7 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 D | surprising_integer_literals.phpt | 8 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 D | 038.phpt | 9 $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 D | filter_data.phpt | 11 $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 D | bug80584.phpt | 7 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 D | 045.phpt | 8 $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 D | 035.phpt | 11 $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 D | 032.phpt | 17 'component' => array(//'filter' => FILTER_VALIDATE_INT, 25 'doesnotexist' => FILTER_VALIDATE_INT, 26 'testscalar' => FILTER_VALIDATE_INT, 28 'filter' => FILTER_VALIDATE_INT,
|
H A D | 047.phpt | 22 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 D | 048.phpt | 26 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 D | bug47745.phpt | 2 Bug #47745 (FILTER_VALIDATE_INT doesn't allow minimum integer) 9 var_dump(filter_var($s, FILTER_VALIDATE_INT));
|
H A D | bug73054.phpt | 8 filter_var(new stdClass, FILTER_VALIDATE_INT, [ 11 filter_var(new stdClass, FILTER_VALIDATE_INT, [
|
H A D | 037.phpt | 14 echo filter_input(INPUT_GET, 'b', FILTER_VALIDATE_INT); 26 'b' => FILTER_VALIDATE_INT
|
H A D | 036.phpt | 15 $args["test1"] = FILTER_VALIDATE_INT; 16 $args["test2"] = FILTER_VALIDATE_INT;
|
H A D | 051.phpt | 8 var_dump(filter_var("123asd", FILTER_VALIDATE_INT, array("options"=>array("default"=>$default))));
|
H A D | filter_var_array_with_ref.phpt | 10 var_dump(filter_var_array($array2, FILTER_VALIDATE_INT));
|
H A D | bug8315.phpt | 9 var_dump(filter_var($var, FILTER_VALIDATE_INT));
|
H A D | bug50632.phpt | 7 $foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array('flags' => FILTER_REQUIRE_SCALAR, …
|
H A D | bug76366.phpt | 14 'filter' => FILTER_VALIDATE_INT,
|
H A D | filter_null_on_failure.phpt | 9 var_dump(filter_var("invalid", FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE));
|
H A D | 010.phpt | 10 …r_var(array(1,"1","", "-23234", "text", "asdf234asdfgs", array()), FILTER_VALIDATE_INT, FILTER_REQ…
|
H A D | 011.phpt | 23 var_dump(filter_input(INPUT_POST, "d", FILTER_VALIDATE_INT));
|
H A D | 046.phpt | 25 $f = filter_var($val, FILTER_VALIDATE_INT);
|
/PHP-8.2/ext/filter/ |
H A D | filter_private.h | 59 #define FILTER_VALIDATE_INT 0x0101 macro
|
H A D | filter.stub.php | 62 const FILTER_VALIDATE_INT = UNKNOWN; define
|