/PHP-7.1/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-7.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 | 25 foreach($ips as $ip) { 26 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-7.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-7.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-7.1/ext/filter/ |
H A D | logical_filters.c | 642 static int _php_filter_validate_ipv4(char *str, size_t str_len, int *ip) /* {{{ */ in _php_filter_validate_ipv4() argument 666 ip[n++] = num; in _php_filter_validate_ipv4() 763 int ip[4]; in php_filter_validate_ip() local 784 if (!_php_filter_validate_ipv4(Z_STRVAL_P(value), Z_STRLEN_P(value), ip)) { in php_filter_validate_ip() 791 (ip[0] == 10) || in php_filter_validate_ip() 792 (ip[0] == 172 && ip[1] >= 16 && ip[1] <= 31) || in php_filter_validate_ip() 793 (ip[0] == 192 && ip[1] == 168) in php_filter_validate_ip() 801 (ip[0] == 0) || in php_filter_validate_ip() 802 (ip[0] >= 240) || in php_filter_validate_ip() 803 (ip[0] == 127) || in php_filter_validate_ip() [all …]
|
/PHP-7.1/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-7.1/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-7.1/ext/pgsql/tests/ |
H A D | bug71998.phpt | 56 foreach ($ips as $ip) { 57 $data = array("id" => ++$i, "remote_addr" => $ip); 60 if (!$r && in_array($ip, $bad)) {
|
/PHP-7.1/main/ |
H A D | php_variables.c | 99 ip = p; in php_register_variable_ex() 170 ip++; in php_register_variable_ex() 171 index_s = ip; in php_register_variable_ex() 173 ip++; in php_register_variable_ex() 175 if (*ip==']') { in php_register_variable_ex() 178 ip = strchr(ip, ']'); in php_register_variable_ex() 179 if (!ip) { in php_register_variable_ex() 190 *ip = 0; in php_register_variable_ex() 223 ip++; in php_register_variable_ex() 224 if (*ip == '[') { in php_register_variable_ex() [all …]
|
H A D | fastcgi.c | 779 if (ip) { in fcgi_listen() 780 ip = strdup(ip); in fcgi_listen() 781 cur = ip; in fcgi_listen() 789 cur = ip; in fcgi_listen() 810 free(ip); in fcgi_listen() 833 void fcgi_set_allowed_clients(char *ip) in fcgi_set_allowed_clients() argument 838 if (ip) { in fcgi_set_allowed_clients() 839 ip = strdup(ip); in fcgi_set_allowed_clients() 840 cur = ip; in fcgi_set_allowed_clients() 849 cur = ip; in fcgi_set_allowed_clients() [all …]
|
H A D | fastcgi.h | 100 void fcgi_set_allowed_clients(char *ip);
|
/PHP-7.1/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 524 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart); in php_stream_url_wrap_ftp() 704 char ip[sizeof("123.123.123.123")]; in php_stream_ftp_opendir() local 724 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart); in php_stream_ftp_opendir()
|
H A D | dns.c | 126 static zend_string *php_gethostbyaddr(char *ip); 182 static zend_string *php_gethostbyaddr(char *ip) in php_gethostbyaddr() argument 191 if (inet_pton(AF_INET6, ip, &addr6)) { in php_gethostbyaddr() 193 } else if (inet_pton(AF_INET, ip, &addr)) { in php_gethostbyaddr() 199 addr.s_addr = inet_addr(ip); in php_gethostbyaddr() 209 return zend_string_init(ip, strlen(ip), 0); in php_gethostbyaddr()
|
H A D | basic_functions.c | 3982 struct in_addr ip; in PHP_FUNCTION() local 3984 zend_ulong ip; in PHP_FUNCTION() local 3992 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) { in PHP_FUNCTION() 3995 RETURN_LONG(ntohl(ip.s_addr)); in PHP_FUNCTION() 3997 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) { in PHP_FUNCTION() 4008 RETURN_LONG(ntohl(ip)); in PHP_FUNCTION() 4017 zend_ulong ip; in PHP_FUNCTION() local 4023 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &ip) == FAILURE) { in PHP_FUNCTION() 4027 myaddr.s_addr = htonl(ip); in PHP_FUNCTION()
|
/PHP-7.1/Zend/ |
H A D | Zend.m4 | 447 int emu(const opcode_handler_t *ip, void *fp) { 450 IP = ip; 452 while ((*ip)());
|
/PHP-7.1/ext/ldap/tests/ |
H A D | README | 48 config.vm.network "private_network", ip: "192.168.33.10"
|
/PHP-7.1/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.
|
/PHP-7.1/sapi/fpm/tests/ |
H A D | tester.inc | 766 'PORT' => ['getPort', 'ip'], 819 public function getPort(string $type = 'ip', $pool = 'default', $useAsId = false)
|
/PHP-7.1/ext/sqlite3/libsqlite/ |
H A D | sqlite3.c | 203452 int ip; int ic; int io; 203723 int ip = 0; 203734 rc = pApi->xInst(pFts, i, &ip, &ic, &iOff); 203736 nScore += (aSeen[ip] ? 1 : 1000); 203737 aSeen[ip] = 1; 203739 iLast = iOff + pApi->xPhraseSize(pFts, ip); 203832 int ip, ic, io; 203837 rc = pApi->xInst(pFts, ii, &ip, &ic, &io); 204052 int ip; int ic; int io; 204053 rc = pApi->xInst(pFts, i, &ip, &ic, &io); [all …]
|