/PHP-8.1/ext/filter/ |
H A D | logical_filters.c | 853 ip[i] = 0; in _php_filter_validate_ipv6() 861 ip[i] = ip[i - offset]; in _php_filter_validate_ipv6() 864 ip[i] = 0; in _php_filter_validate_ipv6() 908 (ip[0] == 172 && ip[1] >= 16 && ip[1] <= 31) || in php_filter_validate_ip() 909 (ip[0] == 192 && ip[1] == 168) in php_filter_validate_ip() 920 (ip[0] == 169 && ip[1] == 254) in php_filter_validate_ip() 936 if (ip[0] >= 0xfc00 && ip[0] <= 0xfdff) { in php_filter_validate_ip() 941 if ((ip[0] == 0 && ip[1] == 0 && ip[2] == 0 && ip[3] == 0 in php_filter_validate_ip() 942 && ip[4] == 0 && ip[5] == 0 && ip[6] == 0 && (ip[7] == 0 || ip[7] == 1)) in php_filter_validate_ip() 944 || (ip[0] >= 0xfe80 && ip[0] <= 0xfebf) in php_filter_validate_ip() [all …]
|
/PHP-8.1/ext/standard/tests/network/ |
H A D | gethostbyname_error004.phpt | 2 gethostbyname() function - basic return valid ip address test 12 $ip = gethostbyname("www.php.net"); 13 var_dump((bool) ip2long($ip));
|
H A D | ip2long_variation2.phpt | 19 foreach($ips as $ip) { 20 var_dump(ip2long($ip));
|
H A D | ip.phpt | 19 foreach ($array as $ip) { 20 var_dump($long = ip2long($ip));
|
H A D | ip_x86_64.phpt | 19 foreach ($array as $ip) { 20 var_dump($long = ip2long($ip));
|
H A D | ip2long_variation2_x64.phpt | 26 foreach($ips as $ip) { 27 var_dump(ip2long($ip));
|
/PHP-8.1/ext/snmp/tests/ |
H A D | bug60749.phpt | 16 $ip = gethostbyname($hostname); 17 if (ip2long($ip) === FALSE) { 25 echo "'" . $info["hostname"] . "' != '$ip:$port'\n";
|
/PHP-8.1/ext/curl/tests/ |
H A D | curl_error_basic.phpt | 12 $ip = gethostbyname($url); 13 if ($ip != $url) die("skip 'fakeURL' resolves to $ip\n");
|
/PHP-8.1/ext/filter/tests/ |
H A D | 030.phpt | 52 foreach ($ipv6_test as $ip => $exp) { 53 $out = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); 56 echo "$ip failed (expected ", $exp?"true":"false", ", got ",
|
/PHP-8.1/ext/standard/tests/strings/ |
H A D | str_shuffle_basic.phpt | 20 $ip = 'abcd'; 21 $len_ip = strlen($ip); 24 $op = str_shuffle($ip);
|
/PHP-8.1/ext/sockets/tests/ |
H A D | socket_getsockname.phpt | 15 $s_conn = socket_getsockname($s_c, $ip, $port); 17 var_dump($ip);
|
H A D | socket_getpeername.phpt | 15 $s_peer = socket_getpeername($s_c, $ip, $port); 17 var_dump($ip);
|
/PHP-8.1/ext/pgsql/tests/ |
H A D | bug71998.phpt | 58 foreach ($ips as $ip) { 59 $data = array("id" => ++$i, "remote_addr" => $ip); 62 if (!$r && in_array($ip, $bad)) {
|
/PHP-8.1/main/ |
H A D | php_variables.c | 115 ip = p; in php_register_variable_ex() 186 ip++; in php_register_variable_ex() 187 index_s = ip; in php_register_variable_ex() 189 ip++; in php_register_variable_ex() 191 if (*ip==']') { in php_register_variable_ex() 194 ip = strchr(ip, ']'); in php_register_variable_ex() 195 if (!ip) { in php_register_variable_ex() 212 *ip = 0; in php_register_variable_ex() 253 ip++; in php_register_variable_ex() 254 if (*ip == '[') { in php_register_variable_ex() [all …]
|
H A D | fastcgi.c | 774 if (ip) { 775 ip = strdup(ip); 776 cur = ip; 784 cur = ip; 805 free(ip); 828 void fcgi_set_allowed_clients(char *ip) argument 833 if (ip) { 834 ip = strdup(ip); 835 cur = ip; 844 cur = ip; [all …]
|
H A D | fastcgi.h | 96 void fcgi_set_allowed_clients(char *ip);
|
/PHP-8.1/ext/standard/ |
H A D | dns.c | 121 static zend_string *php_gethostbyaddr(char *ip); 173 static zend_string *php_gethostbyaddr(char *ip) in php_gethostbyaddr() argument 182 if (inet_pton(AF_INET6, ip, &sa6.sin6_addr)) { in php_gethostbyaddr() 186 return zend_string_init(ip, strlen(ip), 0); in php_gethostbyaddr() 189 } else if (inet_pton(AF_INET, ip, &sa4.sin_addr)) { in php_gethostbyaddr() 193 return zend_string_init(ip, strlen(ip), 0); in php_gethostbyaddr() 202 addr.s_addr = inet_addr(ip); in php_gethostbyaddr() 211 return zend_string_init(ip, strlen(ip), 0); in php_gethostbyaddr()
|
H A D | ftp_fopen_wrapper.c | 315 static unsigned short php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phosts… in php_fopen_do_pasv() argument 357 memcpy(ip, hoststart, ip_size); in php_fopen_do_pasv() 358 ip[ip_size-1] = '\0'; in php_fopen_do_pasv() 359 hoststart = ip; in php_fopen_do_pasv() 411 char ip[sizeof("123.123.123.123")]; in php_stream_url_wrap_ftp() local 513 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart); in php_stream_url_wrap_ftp() 690 char ip[sizeof("123.123.123.123")]; in php_stream_ftp_opendir() local 710 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart); in php_stream_ftp_opendir()
|
H A D | basic_functions.c | 672 struct in_addr ip; in PHP_FUNCTION() local 674 zend_ulong ip; in PHP_FUNCTION() local 682 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) { in PHP_FUNCTION() 685 RETURN_LONG(ntohl(ip.s_addr)); in PHP_FUNCTION() 687 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) { in PHP_FUNCTION() 698 RETURN_LONG(ntohl(ip)); in PHP_FUNCTION() 706 zend_ulong ip; in PHP_FUNCTION() local 718 ip = (zend_ulong)sip; in PHP_FUNCTION() 720 myaddr.s_addr = htonl(ip); in PHP_FUNCTION()
|
H A D | basic_functions.stub.php | 349 function ip2long(string $ip): int|false {} argument 352 function long2ip(int $ip): string|false {} argument 546 function gethostbyaddr(string $ip): string|false {} argument 647 function inet_ntop(string $ip): string|false {} argument 652 function inet_pton(string $ip): string|false {} argument
|
H A D | basic_functions_arginfo.h | 381 ZEND_ARG_TYPE_INFO(0, ip, IS_STRING, 0) 385 ZEND_ARG_TYPE_INFO(0, ip, IS_LONG, 0) 615 ZEND_ARG_TYPE_INFO(0, ip, IS_STRING, 0) 724 ZEND_ARG_TYPE_INFO(0, ip, IS_STRING, 0) 730 ZEND_ARG_TYPE_INFO(0, ip, IS_STRING, 0)
|
/PHP-8.1/Zend/ |
H A D | Zend.m4 | 339 int emu(const opcode_handler_t *ip, void *fp) { 342 IP = ip; 344 while ((*ip)());
|
/PHP-8.1/sapi/fpm/ |
H A D | www.conf.in | 33 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on 35 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on 67 ; accepted from any ip address. 261 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on 263 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
|
/PHP-8.1/ext/ldap/tests/ |
H A D | README.md | 48 config.vm.network "private_network", ip: "192.168.33.10"
|
/PHP-8.1/sapi/fpm/tests/ |
H A D | tester.inc | 1079 'PORT' => ['getPort', 'ip'], 1153 public function getPort(string $type = 'ip', $pool = 'default', $useAsId = false)
|