Home
last modified time | relevance | path

Searched refs:FILTER_VALIDATE_IP (Results 1 – 16 of 16) sorted by relevance

/PHP-8.2/ext/filter/tests/
H A D018.phpt2 filter_var() and FILTER_VALIDATE_IP
7 var_dump(filter_var("192.168.0.1", FILTER_VALIDATE_IP));
8 var_dump(filter_var("192.168.0.1.1", FILTER_VALIDATE_IP));
9 var_dump(filter_var("::1", FILTER_VALIDATE_IP));
10 var_dump(filter_var("fe00::0", FILTER_VALIDATE_IP));
11 var_dump(filter_var("::123456", FILTER_VALIDATE_IP));
12 var_dump(filter_var("::1::b", FILTER_VALIDATE_IP));
13 var_dump(filter_var("127.0.0.1", FILTER_VALIDATE_IP));
20 var_dump(filter_var("192.0.34.166", FILTER_VALIDATE_IP));
24 var_dump(filter_var("", FILTER_VALIDATE_IP));
[all …]
H A Dbug47435.phpt7 var_dump(filter_var("FC00::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
9 var_dump(filter_var("::", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
10 var_dump(filter_var("::", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 | FILTER_FLAG_NO_RES_RANGE));
11 var_dump(filter_var("::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
12 var_dump(filter_var("::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 | FILTER_FLAG_NO_RES_RANGE));
13 var_dump(filter_var("fe80:5:6::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
15 var_dump(filter_var("2001:0db8::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
17 var_dump(filter_var("2001:0010::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
19 var_dump(filter_var("240b:0010::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
21 var_dump(filter_var("5f::1", FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
[all …]
H A Dbug53150.phpt7 var_dump(filter_var('127.0.0.1', FILTER_VALIDATE_IP));
8 var_dump(filter_var("::1", FILTER_VALIDATE_IP));
10 var_dump(filter_var('127.0.0.1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE));
11 var_dump(filter_var('::1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE));
13 var_dump(filter_var('128.0.0.1', FILTER_VALIDATE_IP));
14 var_dump(filter_var('128.0.0.1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE));
16 var_dump(filter_var('191.255.0.0', FILTER_VALIDATE_IP));
17 var_dump(filter_var('191.255.0.0', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE));
H A D019.phpt2 filter_var() & FILTER_VALIDATE_IP and weird data
8 var_dump(filter_var("....", FILTER_VALIDATE_IP));
9 var_dump(filter_var("...", FILTER_VALIDATE_IP));
10 var_dump(filter_var("..", FILTER_VALIDATE_IP));
11 var_dump(filter_var(".", FILTER_VALIDATE_IP));
12 var_dump(filter_var("1.1.1.1", FILTER_VALIDATE_IP));
H A Dbug61700.phpt7 var_dump(filter_var('::ffff:192.168.1.1', FILTER_VALIDATE_IP, FILTER_FLAG_IPV4));
8 var_dump(filter_var('::ffff:192.168.1.1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE));
9 var_dump(filter_var('0:0:0:0:0:0:0:1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE));
H A Dbug46973.phpt8 var_dump(filter_var('1fff::a88:85a3::172.31.128.1', FILTER_VALIDATE_IP,FILTER_FLAG_IPV6));
9 var_dump(filter_var('3ffe:6a88:85a3:08d3:1319:8a2e:0370:7344', FILTER_VALIDATE_IP,FILTER_FLAG_IPV6)…
10 var_dump(filter_var('1fff::a88:85a3::172.31.128.1', FILTER_VALIDATE_IP,FILTER_FLAG_IPV6));
H A Dbug39846.phpt7 var_dump(filter_var('192.168.1.100random-text-here', FILTER_VALIDATE_IP));
8 var_dump(filter_var("192.168.1.155\0foo", FILTER_VALIDATE_IP));
H A Dbug48762.phpt8 var_dump(filter_var('0b15:23::3:67.98.234.17', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
9 var_dump(filter_var('::67:78b:34.43.43.2', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
H A Dfilter_ipv4_rfc6890.phpt25 var_dump(filter_var($min, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE));
26 var_dump(filter_var($max, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE));
79 var_dump(filter_var($min, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_RES_RANGE));
80 var_dump(filter_var($max, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_RES_RANGE));
H A Dbug77221.phpt38 var_dump(filter_var($min, FILTER_VALIDATE_IP, FILTER_FLAG_GLOBAL_RANGE));
39 var_dump(filter_var($max, FILTER_VALIDATE_IP, FILTER_FLAG_GLOBAL_RANGE));
42 var_dump(filter_var('185.85.0.29', FILTER_VALIDATE_IP, FILTER_FLAG_GLOBAL_RANGE));
43 var_dump(filter_var('64:ff9b::', FILTER_VALIDATE_IP, FILTER_FLAG_GLOBAL_RANGE));
44 var_dump(filter_var('64:ff9b::ffff', FILTER_VALIDATE_IP, FILTER_FLAG_GLOBAL_RANGE));
H A Dfilter_null_on_failure.phpt13 var_dump(filter_var("invalid", FILTER_VALIDATE_IP, FILTER_NULL_ON_FAILURE));
H A D030.phpt53 $out = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
/PHP-8.2/ext/filter/
H A Dfilter_private.h66 #define FILTER_VALIDATE_IP 0x0113 macro
H A Dfilter.stub.php103 const FILTER_VALIDATE_IP = UNKNOWN; define
H A Dfilter_arginfo.h82 REGISTER_LONG_CONSTANT("FILTER_VALIDATE_IP", FILTER_VALIDATE_IP, CONST_PERSISTENT); in register_filter_symbols()
H A Dfilter.c47 { "validate_ip", FILTER_VALIDATE_IP, php_filter_validate_ip },

Completed in 16 milliseconds