Searched refs:ip (Results 1 - 7 of 7) sorted by relevance

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfastcgi.c247 void fcgi_set_allowed_clients(char *ip) argument
252 if (ip) {
253 ip = strdup(ip);
254 cur = ip;
263 cur = ip;
282 free(ip);
/PHP_TRUNK/ext/filter/
H A Dlogical_filters.c634 static int _php_filter_validate_ipv4(char *str, size_t str_len, int *ip) /* {{{ */ argument
658 ip[n++] = num;
755 int ip[4]; local
776 if (!_php_filter_validate_ipv4(Z_STRVAL_P(value), Z_STRLEN_P(value), ip)) {
783 (ip[0] == 10) ||
784 (ip[0] == 172 && (ip[1] >= 16 && ip[1] <= 31)) ||
785 (ip[0] == 192 && ip[
[all...]
/PHP_TRUNK/ext/standard/
H A Ddns.c123 static zend_string *php_gethostbyaddr(char *ip);
179 static zend_string *php_gethostbyaddr(char *ip) argument
188 if (inet_pton(AF_INET6, ip, &addr6)) {
190 } else if (inet_pton(AF_INET, ip, &addr)) {
196 addr.s_addr = inet_addr(ip);
206 return zend_string_init(ip, strlen(ip), 0);
473 add_assoc_string(subarray, "ip", name);
H A Dftp_fopen_wrapper.c323 static unsigned short php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phoststart) argument
354 /* skip over the host ip, to get the port */
365 memcpy(ip, hoststart, ip_size);
366 ip[ip_size-1] = '\0';
367 hoststart = ip;
420 char ip[sizeof("123.123.123.123")]; local
521 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart);
694 char ip[sizeof("123.123.123.123")]; local
711 portno = php_fopen_do_pasv(stream, ip, sizeo
[all...]
H A Dbasic_functions.c3912 struct in_addr ip; local
3914 zend_ulong ip; local
3922 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) {
3925 RETURN_LONG(ntohl(ip.s_addr));
3927 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) {
3938 RETURN_LONG(ntohl(ip));
3948 char *ip; local
3956 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &ip, &ip_len) == FAILURE) {
3960 n = strtoul(ip, NULL, 0);
4620 2 = send via tcp/ip t
[all...]
/PHP_TRUNK/main/
H A Dphp_variables.c59 char *ip = NULL; /* index pointer */ local
99 ip = p;
150 ip++;
151 index_s = ip;
152 if (isspace(*ip)) {
153 ip++;
155 if (*ip==']') {
158 ip = strchr(ip, ']');
159 if (!ip) {
[all...]
/PHP_TRUNK/sapi/cgi/
H A Dfastcgi.c691 char *ip = getenv("FCGI_WEB_SERVER_ADDRS"); local
695 if (ip) {
696 ip = strdup(ip);
697 cur = ip;
705 cur = ip;
720 free(ip);

Completed in 21 milliseconds