Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 18 of 18) sorted by relevance

/PHP-5.3/ext/filter/
H A Dlogical_filters.c577 ip[n++] = num; in _php_filter_validate_ipv4()
702 (ip[0] == 10) || in php_filter_validate_ip()
703 (ip[0] == 172 && (ip[1] >= 16 && ip[1] <= 31)) || in php_filter_validate_ip()
704 (ip[0] == 192 && ip[1] == 168) in php_filter_validate_ip()
712 (ip[0] == 0) || in php_filter_validate_ip()
713 (ip[0] == 128 && ip[1] == 0) || in php_filter_validate_ip()
714 (ip[0] == 191 && ip[1] == 255) || in php_filter_validate_ip()
715 (ip[0] == 169 && ip[1] == 254) || in php_filter_validate_ip()
716 (ip[0] == 192 && ip[1] == 0 && ip[2] == 2) || in php_filter_validate_ip()
717 (ip[0] == 127 && ip[1] == 0 && ip[2] == 0 && ip[3] == 1) || in php_filter_validate_ip()
[all …]
/PHP-5.3/ext/standard/tests/network/
H A Dgethostbyname_error004.phpt2 gethostbyname() function - basic return valid ip address test
11 $ip = gethostbyname("www.php.net");
12 var_dump((bool) ip2long($ip));
H A Dgethostbyname_basic002.phpt11 $ip = gethostbyname("www.php.net");
12 var_dump((bool) ip2long($ip));
H A Dip.phpt19 foreach ($array as $ip) {
20 var_dump($long = ip2long($ip));
H A Dip_x86_64.phpt19 foreach ($array as $ip) {
20 var_dump($long = ip2long($ip));
/PHP-5.3/ext/curl/tests/
H A Dcurl_error_basic.phpt12 $ip = gethostbyname($url);
13 if ($ip != $url) die("skip 'fakeURL' resolves to $ip\n");
/PHP-5.3/ext/filter/tests/
H A D030.phpt52 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.3/ext/sockets/tests/
H A Dsocket_getsockname.phpt20 $s_conn = socket_getsockname($s_c, $ip, $port);
22 var_dump($ip);
H A Dsocket_getpeername.phpt20 $s_peer = socket_getpeername($s_c, $ip, $port);
22 var_dump($ip);
/PHP-5.3/ext/standard/tests/strings/
H A Dstr_shuffle_basic.phpt25 $ip = 'abcd';
26 $len_ip = strlen($ip);
29 $op = str_shuffle($ip);
/PHP-5.3/main/
H A Dphp_variables.c104 ip = p; in php_register_variable_ex()
158 ip++; in php_register_variable_ex()
159 index_s = ip; in php_register_variable_ex()
161 ip++; in php_register_variable_ex()
163 if (*ip==']') { in php_register_variable_ex()
166 ip = strchr(ip, ']'); in php_register_variable_ex()
167 if (!ip) { in php_register_variable_ex()
178 *ip = 0; in php_register_variable_ex()
212 ip++; in php_register_variable_ex()
213 if (*ip == '[') { in php_register_variable_ex()
[all …]
/PHP-5.3/ext/standard/
H A Dftp_fopen_wrapper.c323 static unsigned short php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phosts… in php_fopen_do_pasv() argument
365 memcpy(ip, hoststart, ip_size); in php_fopen_do_pasv()
366 ip[ip_size-1] = '\0'; in php_fopen_do_pasv()
367 hoststart = ip; in php_fopen_do_pasv()
419 char ip[sizeof("123.123.123.123")]; in php_stream_url_wrap_ftp() local
520 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart TSRMLS_CC); in php_stream_url_wrap_ftp()
702 char ip[sizeof("123.123.123.123")]; in php_stream_ftp_opendir() local
719 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart TSRMLS_CC); in php_stream_ftp_opendir()
H A Ddns.c123 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 Dbasic_functions.c3922 struct in_addr ip; in PHP_FUNCTION() local
3924 unsigned long int ip; in PHP_FUNCTION() local
3932 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) { in PHP_FUNCTION()
3935 RETURN_LONG(ntohl(ip.s_addr)); in PHP_FUNCTION()
3937 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) { in PHP_FUNCTION()
3948 RETURN_LONG(ntohl(ip)); in PHP_FUNCTION()
3958 char *ip; in PHP_FUNCTION() local
3966 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &ip, &ip_len) == FAILURE) { in PHP_FUNCTION()
3970 n = strtoul(ip, NULL, 0); in PHP_FUNCTION()
/PHP-5.3/ext/mssql/
H A Dmssql_win32_howto.txt25 dbmssocn.dll for tcp/ip connections
/PHP-5.3/sapi/fpm/fpm/
H A Dfastcgi.c246 void fcgi_set_allowed_clients(char *ip) in fcgi_set_allowed_clients() argument
251 if (ip) { in fcgi_set_allowed_clients()
252 ip = strdup(ip); in fcgi_set_allowed_clients()
253 cur = ip; in fcgi_set_allowed_clients()
262 cur = ip; in fcgi_set_allowed_clients()
277 free(ip); in fcgi_set_allowed_clients()
/PHP-5.3/sapi/cgi/
H A Dfastcgi.c462 char *ip = getenv("FCGI_WEB_SERVER_ADDRS"); in fcgi_listen() local
466 if (ip) { in fcgi_listen()
467 ip = strdup(ip); in fcgi_listen()
468 cur = ip; in fcgi_listen()
476 cur = ip; in fcgi_listen()
491 free(ip); in fcgi_listen()
/PHP-5.3/sapi/fpm/
H A Dphp-fpm.conf.in145 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
170 ; accepted from any ip address.

Completed in 69 milliseconds