Searched refs:FILTER_VALIDATE_IP (Results 1 – 16 of 16) sorted by relevance
/PHP-8.2/ext/filter/tests/ |
H A D | 018.phpt | 2 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 D | bug47435.phpt | 7 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 D | bug53150.phpt | 7 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 D | 019.phpt | 2 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 D | bug61700.phpt | 7 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 D | bug46973.phpt | 8 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 D | bug39846.phpt | 7 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 D | bug48762.phpt | 8 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 D | filter_ipv4_rfc6890.phpt | 25 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 D | bug77221.phpt | 38 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 D | filter_null_on_failure.phpt | 13 var_dump(filter_var("invalid", FILTER_VALIDATE_IP, FILTER_NULL_ON_FAILURE));
|
H A D | 030.phpt | 53 $out = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
|
/PHP-8.2/ext/filter/ |
H A D | filter_private.h | 66 #define FILTER_VALIDATE_IP 0x0113 macro
|
H A D | filter.stub.php | 103 const FILTER_VALIDATE_IP = UNKNOWN; define
|
H A D | filter_arginfo.h | 82 REGISTER_LONG_CONSTANT("FILTER_VALIDATE_IP", FILTER_VALIDATE_IP, CONST_PERSISTENT); in register_filter_symbols()
|
H A D | filter.c | 47 { "validate_ip", FILTER_VALIDATE_IP, php_filter_validate_ip },
|
Completed in 16 milliseconds