/PHP-5.6/ext/snmp/tests/ |
H A D | bug60749.phpt | 14 $ip = gethostbyname($hostname); 15 if (ip2long($ip) === FALSE) { 22 if (strcmp($info["hostname"], "$ip:$port") !== 0) { 23 echo "'" . $info["hostname"] . "' != '$ip:$port'\n";
|
/PHP-5.6/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 | 24 foreach($ips as $ip) { 25 var_dump(ip2long($ip));
|
H A D | ip2long_variation2_x64.phpt | 32 foreach($ips as $ip) { 33 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));
|
/PHP-5.6/ext/filter/ |
H A D | logical_filters.c | 557 static int _php_filter_validate_ipv4(char *str, int str_len, int *ip) /* {{{ */ in _php_filter_validate_ipv4() argument 581 ip[n++] = num; in _php_filter_validate_ipv4() 678 int ip[4]; in php_filter_validate_ip() local 699 if (!_php_filter_validate_ipv4(Z_STRVAL_P(value), Z_STRLEN_P(value), ip)) { in php_filter_validate_ip() 706 (ip[0] == 10) || in php_filter_validate_ip() 707 (ip[0] == 172 && ip[1] >= 16 && ip[1] <= 31) || in php_filter_validate_ip() 708 (ip[0] == 192 && ip[1] == 168) in php_filter_validate_ip() 716 (ip[0] == 0) || in php_filter_validate_ip() 717 (ip[0] >= 240) || in php_filter_validate_ip() 718 (ip[0] == 127) || in php_filter_validate_ip() [all …]
|
/PHP-5.6/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-5.6/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-5.6/ext/sockets/tests/ |
H A D | socket_getsockname.phpt | 20 $s_conn = socket_getsockname($s_c, $ip, $port); 22 var_dump($ip);
|
H A D | socket_getpeername.phpt | 20 $s_peer = socket_getpeername($s_c, $ip, $port); 22 var_dump($ip);
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | str_shuffle_basic.phpt | 25 $ip = 'abcd'; 26 $len_ip = strlen($ip); 29 $op = str_shuffle($ip);
|
/PHP-5.6/main/ |
H A D | php_variables.c | 102 ip = p; in php_register_variable_ex() 153 ip++; in php_register_variable_ex() 154 index_s = ip; in php_register_variable_ex() 156 ip++; in php_register_variable_ex() 158 if (*ip==']') { in php_register_variable_ex() 161 ip = strchr(ip, ']'); in php_register_variable_ex() 162 if (!ip) { in php_register_variable_ex() 173 *ip = 0; in php_register_variable_ex() 199 ip++; in php_register_variable_ex() 200 if (*ip == '[') { in php_register_variable_ex() [all …]
|
/PHP-5.6/ext/standard/ |
H A D | ftp_fopen_wrapper.c | 325 static unsigned short php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phosts… in php_fopen_do_pasv() argument 367 memcpy(ip, hoststart, ip_size); in php_fopen_do_pasv() 368 ip[ip_size-1] = '\0'; in php_fopen_do_pasv() 369 hoststart = ip; in php_fopen_do_pasv() 422 char ip[sizeof("123.123.123.123")]; in php_stream_url_wrap_ftp() local 523 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart TSRMLS_CC); in php_stream_url_wrap_ftp() 705 char ip[sizeof("123.123.123.123")]; in php_stream_ftp_opendir() local 725 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart TSRMLS_CC); in php_stream_ftp_opendir()
|
H A D | dns.c | 123 static char *php_gethostbyaddr(char *ip); 179 static char *php_gethostbyaddr(char *ip) in php_gethostbyaddr() argument 188 if (inet_pton(AF_INET6, ip, &addr6)) { in php_gethostbyaddr() 190 } else if (inet_pton(AF_INET, ip, &addr)) { in php_gethostbyaddr() 196 addr.s_addr = inet_addr(ip); in php_gethostbyaddr() 206 return estrdup(ip); in php_gethostbyaddr()
|
H A D | basic_functions.c | 3923 struct in_addr ip; in PHP_FUNCTION() local 3925 unsigned long int ip; in PHP_FUNCTION() local 3933 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) { in PHP_FUNCTION() 3936 RETURN_LONG(ntohl(ip.s_addr)); in PHP_FUNCTION() 3938 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) { in PHP_FUNCTION() 3949 RETURN_LONG(ntohl(ip)); in PHP_FUNCTION() 3959 char *ip; in PHP_FUNCTION() local 3967 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &ip, &ip_len) == FAILURE) { in PHP_FUNCTION() 3971 n = strtoul(ip, NULL, 0); in PHP_FUNCTION()
|
/PHP-5.6/ext/mssql/ |
H A D | mssql_win32_howto.txt | 25 dbmssocn.dll for tcp/ip connections
|
/PHP-5.6/sapi/fpm/fpm/ |
H A D | fastcgi.c | 245 void fcgi_set_allowed_clients(char *ip) in fcgi_set_allowed_clients() argument 250 if (ip) { in fcgi_set_allowed_clients() 251 ip = strdup(ip); in fcgi_set_allowed_clients() 252 cur = ip; in fcgi_set_allowed_clients() 261 cur = ip; in fcgi_set_allowed_clients() 280 free(ip); in fcgi_set_allowed_clients()
|
/PHP-5.6/sapi/cgi/ |
H A D | fastcgi.c | 694 char *ip = getenv("FCGI_WEB_SERVER_ADDRS"); in fcgi_listen() local 698 if (ip) { in fcgi_listen() 699 ip = strdup(ip); in fcgi_listen() 700 cur = ip; in fcgi_listen() 708 cur = ip; in fcgi_listen() 723 free(ip); in fcgi_listen()
|
/PHP-5.6/sapi/fpm/ |
H A D | www.conf.in | 28 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on 30 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on 60 ; accepted from any ip address.
|
H A D | php-fpm.conf.in | 154 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on 156 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on 188 ; accepted from any ip address.
|