Lines Matching refs:p

101 	char const *s, *e, *p, *pp, *ue;  in php_url_parse_ex()  local
109 p = s; in php_url_parse_ex()
110 while (p < e) { in php_url_parse_ex()
112 if (!isalpha(*p) && !isdigit(*p) && *p != '+' && *p != '.' && *p != '-') { in php_url_parse_ex()
119 p++; in php_url_parse_ex()
136 p = e + 1; in php_url_parse_ex()
137 while (isdigit(*p)) { in php_url_parse_ex()
138 p++; in php_url_parse_ex()
141 if ((*p == '\0' || *p == '/') && (p - e) < 7) { in php_url_parse_ex()
181 p = e + 1; in php_url_parse_ex()
182 pp = p; in php_url_parse_ex()
184 while (pp-p < 6 && isdigit(*pp)) { in php_url_parse_ex()
188 if (pp - p > 0 && pp - p < 6 && (*pp == '/' || *pp == '\0')) { in php_url_parse_ex()
190 memcpy(port_buf, p, (pp - p)); in php_url_parse_ex()
191 port_buf[pp - p] = '\0'; in php_url_parse_ex()
203 } else if (p == pp && *pp == '\0') { in php_url_parse_ex()
222 if (!(p = memchr(s, '/', (ue - s)))) { in php_url_parse_ex()
240 e = p; in php_url_parse_ex()
244 if ((p = zend_memrchr(s, '@', (e-s)))) { in php_url_parse_ex()
245 if ((pp = memchr(s, ':', (p-s)))) { in php_url_parse_ex()
250 ret->pass = estrndup(pp, (p-pp)); in php_url_parse_ex()
251 php_replace_controlchars_ex(ret->pass, (p-pp)); in php_url_parse_ex()
253 ret->user = estrndup(s, (p-s)); in php_url_parse_ex()
254 php_replace_controlchars_ex(ret->user, (p-s)); in php_url_parse_ex()
257 s = p + 1; in php_url_parse_ex()
265 p = s; in php_url_parse_ex()
269 for(p = e; p >= s && *p != ':'; p--); in php_url_parse_ex()
272 if (p >= s && *p == ':') { in php_url_parse_ex()
274 p++; in php_url_parse_ex()
275 if (e-p > 5) { /* port cannot be longer then 5 characters */ in php_url_parse_ex()
281 } else if (e - p > 0) { in php_url_parse_ex()
283 memcpy(port_buf, p, (e - p)); in php_url_parse_ex()
284 port_buf[e - p] = '\0'; in php_url_parse_ex()
296 p--; in php_url_parse_ex()
299 p = e; in php_url_parse_ex()
303 if ((p-s) < 1) { in php_url_parse_ex()
311 ret->host = estrndup(s, (p-s)); in php_url_parse_ex()
312 php_replace_controlchars_ex(ret->host, (p - s)); in php_url_parse_ex()
322 if ((p = memchr(s, '?', (ue - s)))) { in php_url_parse_ex()
325 if (pp && pp < p) { in php_url_parse_ex()
330 p = pp; in php_url_parse_ex()
334 if (p - s) { in php_url_parse_ex()
335 ret->path = estrndup(s, (p-s)); in php_url_parse_ex()
336 php_replace_controlchars_ex(ret->path, (p - s)); in php_url_parse_ex()
340 if (pp - ++p) { in php_url_parse_ex()
341 ret->query = estrndup(p, (pp-p)); in php_url_parse_ex()
342 php_replace_controlchars_ex(ret->query, (pp - p)); in php_url_parse_ex()
344 p = pp; in php_url_parse_ex()
346 } else if (++p - ue) { in php_url_parse_ex()
347 ret->query = estrndup(p, (ue-p)); in php_url_parse_ex()
348 php_replace_controlchars_ex(ret->query, (ue - p)); in php_url_parse_ex()
350 } else if ((p = memchr(s, '#', (ue - s)))) { in php_url_parse_ex()
351 if (p - s) { in php_url_parse_ex()
352 ret->path = estrndup(s, (p-s)); in php_url_parse_ex()
353 php_replace_controlchars_ex(ret->path, (p - s)); in php_url_parse_ex()
357 p++; in php_url_parse_ex()
359 if (ue - p) { in php_url_parse_ex()
360 ret->fragment = estrndup(p, (ue-p)); in php_url_parse_ex()
361 php_replace_controlchars_ex(ret->fragment, (ue - p)); in php_url_parse_ex()
752 char *s, *p; local
754 if ((p = strchr(Z_STRVAL_PP(hdr), ':'))) {
755 c = *p;
756 *p = '\0';
757 s = p + 1;
762 …if (zend_hash_find(HASH_OF(return_value), Z_STRVAL_PP(hdr), (p - Z_STRVAL_PP(hdr) + 1), (void **) …
763 …add_assoc_stringl_ex(return_value, Z_STRVAL_PP(hdr), (p - Z_STRVAL_PP(hdr) + 1), s, (Z_STRLEN_PP(h…
769 *p = c;