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

/PHP_5_3/ext/filter/
H A Dlogical_filters.c553 static int _php_filter_validate_ipv4(char *str, int str_len, int *ip) /* {{{ */ argument
577 ip[n++] = num;
674 int ip[4]; local
695 if (!_php_filter_validate_ipv4(Z_STRVAL_P(value), Z_STRLEN_P(value), ip)) {
702 (ip[0] == 10) ||
703 (ip[0] == 172 && (ip[1] >= 16 && ip[1] <= 31)) ||
704 (ip[0] == 192 && ip[
[all...]
/PHP_5_3/ext/standard/
H A Dbasic_functions.c3922 struct in_addr ip; local
3924 unsigned long int ip; local
3932 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) {
3935 RETURN_LONG(ntohl(ip.s_addr));
3937 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) {
3948 RETURN_LONG(ntohl(ip));
3958 char *ip; local
3966 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &ip, &ip_len) == FAILURE) {
3970 n = strtoul(ip, NULL, 0);
4672 2 = send via tcp/ip t
[all...]
H A Dftp_fopen_wrapper.c323 static unsigned short php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phoststart TSRMLS_DC) 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;
419 char ip[sizeof("123.123.123.123")]; local
520 portno = php_fopen_do_pasv(stream, ip, sizeof(ip), &hoststart TSRMLS_CC);
702 char ip[sizeof("123.123.123.123")]; local
719 portno = php_fopen_do_pasv(stream, ip, sizeo
[all...]
H A Ddns.c123 static char *php_gethostbyaddr(char *ip);
179 static char *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 estrdup(ip);
456 add_assoc_string(*subarray, "ip", name, 1);
/PHP_5_3/main/
H A Dphp_variables.c63 char *ip; /* index pointer */ local
104 ip = p;
158 ip++;
159 index_s = ip;
160 if (isspace(*ip)) {
161 ip++;
163 if (*ip==']') {
166 ip = strchr(ip, ']');
167 if (!ip) {
[all...]
/PHP_5_3/sapi/cgi/
H A Dfastcgi.c462 char *ip = getenv("FCGI_WEB_SERVER_ADDRS"); local
466 if (ip) {
467 ip = strdup(ip);
468 cur = ip;
476 cur = ip;
491 free(ip);
/PHP_5_3/sapi/fpm/fpm/
H A Dfastcgi.c246 void fcgi_set_allowed_clients(char *ip) argument
251 if (ip) {
252 ip = strdup(ip);
253 cur = ip;
262 cur = ip;
277 free(ip);

Completed in 16 milliseconds