Home
last modified time | relevance | path

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

/PHP-7.4/ext/filter/
H A Dlogical_filters.c844 ip[i] = 0; in _php_filter_validate_ipv6()
852 ip[i] = ip[i - offset]; in _php_filter_validate_ipv6()
855 ip[i] = 0; in _php_filter_validate_ipv6()
899 (ip[0] == 172 && ip[1] >= 16 && ip[1] <= 31) || in php_filter_validate_ip()
900 (ip[0] == 192 && ip[1] == 168) in php_filter_validate_ip()
911 (ip[0] == 169 && ip[1] == 254) in php_filter_validate_ip()
927 if (ip[0] >= 0xfc00 && ip[0] <= 0xfdff) { in php_filter_validate_ip()
932 if ((ip[0] == 0 && ip[1] == 0 && ip[2] == 0 && ip[3] == 0 in php_filter_validate_ip()
933 && ip[4] == 0 && ip[5] == 0 && ip[6] == 0 && (ip[7] == 0 || ip[7] == 1)) in php_filter_validate_ip()
935 || (ip[0] >= 0xfe80 && ip[0] <= 0xfebf) in php_filter_validate_ip()
[all …]
/PHP-7.4/ext/snmp/tests/
H A Dbug60749.phpt14 $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.4/ext/standard/tests/network/
H A Dgethostbyname_error004.phpt2 gethostbyname() function - basic return valid ip address test
12 $ip = gethostbyname("www.php.net");
13 var_dump((bool) ip2long($ip));
H A Dip2long_variation2.phpt25 foreach($ips as $ip) {
26 var_dump(ip2long($ip));
H A Dip2long_variation2_x64.phpt32 foreach($ips as $ip) {
33 var_dump(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-7.4/ext/curl/tests/
H A Dcurl_error_basic.phpt12 $ip = gethostbyname($url);
13 if ($ip != $url) die("skip 'fakeURL' resolves to $ip\n");
/PHP-7.4/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-7.4/ext/sockets/tests/
H A Dsocket_getsockname.phpt19 $s_conn = socket_getsockname($s_c, $ip, $port);
21 var_dump($ip);
H A Dsocket_getpeername.phpt19 $s_peer = socket_getpeername($s_c, $ip, $port);
21 var_dump($ip);
/PHP-7.4/ext/standard/tests/strings/
H A Dstr_shuffle_basic.phpt25 $ip = 'abcd';
26 $len_ip = strlen($ip);
29 $op = str_shuffle($ip);
/PHP-7.4/ext/pgsql/tests/
H A Dbug71998.phpt56 foreach ($ips as $ip) {
57 $data = array("id" => ++$i, "remote_addr" => $ip);
60 if (!$r && in_array($ip, $bad)) {
/PHP-7.4/main/
H A Dphp_variables.c111 ip = p; in php_register_variable_ex()
196 ip++; in php_register_variable_ex()
197 index_s = ip; in php_register_variable_ex()
199 ip++; in php_register_variable_ex()
201 if (*ip==']') { in php_register_variable_ex()
204 ip = strchr(ip, ']'); in php_register_variable_ex()
205 if (!ip) { in php_register_variable_ex()
216 *ip = 0; in php_register_variable_ex()
251 ip++; in php_register_variable_ex()
252 if (*ip == '[') { in php_register_variable_ex()
[all …]
H A Dfastcgi.c777 if (ip) { in fcgi_listen()
778 ip = strdup(ip); in fcgi_listen()
779 cur = ip; in fcgi_listen()
787 cur = ip; in fcgi_listen()
808 free(ip); in fcgi_listen()
831 void fcgi_set_allowed_clients(char *ip) in fcgi_set_allowed_clients() argument
836 if (ip) { in fcgi_set_allowed_clients()
837 ip = strdup(ip); in fcgi_set_allowed_clients()
838 cur = ip; in fcgi_set_allowed_clients()
847 cur = ip; in fcgi_set_allowed_clients()
[all …]
H A Dfastcgi.h98 void fcgi_set_allowed_clients(char *ip);
/PHP-7.4/ext/standard/
H A Dftp_fopen_wrapper.c322 static unsigned short php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phosts… in php_fopen_do_pasv() argument
364 memcpy(ip, hoststart, ip_size); in php_fopen_do_pasv()
365 ip[ip_size-1] = '\0'; in php_fopen_do_pasv()
366 hoststart = ip; in php_fopen_do_pasv()
419 char ip[sizeof("123.123.123.123")]; in php_stream_url_wrap_ftp() local
521 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart); in php_stream_url_wrap_ftp()
701 char ip[sizeof("123.123.123.123")]; in php_stream_ftp_opendir() local
721 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart); in php_stream_ftp_opendir()
H A Ddns.c119 static zend_string *php_gethostbyaddr(char *ip);
175 static zend_string *php_gethostbyaddr(char *ip) in php_gethostbyaddr() argument
184 if (inet_pton(AF_INET6, ip, &addr6)) { in php_gethostbyaddr()
186 } else if (inet_pton(AF_INET, ip, &addr)) { in php_gethostbyaddr()
192 addr.s_addr = inet_addr(ip); in php_gethostbyaddr()
202 return zend_string_init(ip, strlen(ip), 0); in php_gethostbyaddr()
H A Dbasic_functions.c3995 struct in_addr ip; in PHP_FUNCTION() local
3997 zend_ulong ip; in PHP_FUNCTION() local
4005 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) { in PHP_FUNCTION()
4008 RETURN_LONG(ntohl(ip.s_addr)); in PHP_FUNCTION()
4010 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) { in PHP_FUNCTION()
4021 RETURN_LONG(ntohl(ip)); in PHP_FUNCTION()
4030 zend_ulong ip; in PHP_FUNCTION() local
4042 ip = (zend_ulong)sip; in PHP_FUNCTION()
4044 myaddr.s_addr = htonl(ip); in PHP_FUNCTION()
/PHP-7.4/Zend/
H A DZend.m4365 int emu(const opcode_handler_t *ip, void *fp) {
368 IP = ip;
370 while ((*ip)());
/PHP-7.4/ext/ldap/tests/
H A DREADME.md48 config.vm.network "private_network", ip: "192.168.33.10"
/PHP-7.4/sapi/fpm/
H A Dwww.conf.in28 ; '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
61 ; accepted from any ip address.
/PHP-7.4/sapi/fpm/tests/
H A Dtester.inc970 'PORT' => ['getPort', 'ip'],
1037 public function getPort(string $type = 'ip', $pool = 'default', $useAsId = false)
/PHP-7.4/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます18302 # Dump files for iproute2 tool. Generated by the "ip r|a save" command. URL:
H A Dmagic18302 # Dump files for iproute2 tool. Generated by the "ip r|a save" command. URL:

Completed in 157 milliseconds