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()
123 p++; in php_url_parse_ex()
140 p = e + 1; in php_url_parse_ex()
141 while (p < ue && isdigit(*p)) { in php_url_parse_ex()
142 p++; in php_url_parse_ex()
145 if ((p == ue || *p == '/') && (p - e) < 7) { in php_url_parse_ex()
178 p = e + 1; in php_url_parse_ex()
179 pp = p; in php_url_parse_ex()
181 while (pp < ue && pp - p < 6 && isdigit(*pp)) { in php_url_parse_ex()
185 if (pp - p > 0 && pp - p < 6 && (pp == ue || *pp == '/')) { in php_url_parse_ex()
187 memcpy(port_buf, p, (pp - p)); in php_url_parse_ex()
188 port_buf[pp - p] = '\0'; in php_url_parse_ex()
200 } else if (p == pp && pp == ue) { in php_url_parse_ex()
218 if ((p = memchr(s, '/', e - s))) { in php_url_parse_ex()
219 e = p; in php_url_parse_ex()
221 if ((p = memchr(s, '?', e - s))) { in php_url_parse_ex()
222 e = p; in php_url_parse_ex()
224 if ((p = memchr(s, '#', e - s))) { in php_url_parse_ex()
225 e = p; in php_url_parse_ex()
229 if ((p = zend_memrchr(s, '@', (e-s)))) { in php_url_parse_ex()
230 if ((pp = memchr(s, ':', (p-s)))) { in php_url_parse_ex()
235 ret->pass = estrndup(pp, (p-pp)); in php_url_parse_ex()
236 php_replace_controlchars_ex(ret->pass, (p-pp)); in php_url_parse_ex()
238 ret->user = estrndup(s, (p-s)); in php_url_parse_ex()
239 php_replace_controlchars_ex(ret->user, (p-s)); in php_url_parse_ex()
242 s = p + 1; in php_url_parse_ex()
250 p = NULL; in php_url_parse_ex()
252 p = zend_memrchr(s, ':', (e-s)); in php_url_parse_ex()
255 if (p) { in php_url_parse_ex()
257 p++; in php_url_parse_ex()
258 if (e-p > 5) { /* port cannot be longer then 5 characters */ in php_url_parse_ex()
264 } else if (e - p > 0) { in php_url_parse_ex()
266 memcpy(port_buf, p, (e - p)); in php_url_parse_ex()
267 port_buf[e - p] = '\0'; in php_url_parse_ex()
279 p--; in php_url_parse_ex()
282 p = e; in php_url_parse_ex()
286 if ((p-s) < 1) { in php_url_parse_ex()
294 ret->host = estrndup(s, (p-s)); in php_url_parse_ex()
295 php_replace_controlchars_ex(ret->host, (p - s)); in php_url_parse_ex()
306 p = memchr(s, '#', (e - s)); in php_url_parse_ex()
307 if (p) { in php_url_parse_ex()
308 p++; in php_url_parse_ex()
309 if (p < e) { in php_url_parse_ex()
310 ret->fragment = estrndup(p, (e - p)); in php_url_parse_ex()
311 php_replace_controlchars_ex(ret->fragment, (e - p)); in php_url_parse_ex()
313 e = p-1; in php_url_parse_ex()
316 p = memchr(s, '?', (e - s)); in php_url_parse_ex()
317 if (p) { in php_url_parse_ex()
318 p++; in php_url_parse_ex()
319 if (p < e) { in php_url_parse_ex()
320 ret->query = estrndup(p, (e - p)); in php_url_parse_ex()
321 php_replace_controlchars_ex(ret->query, (e - p)); in php_url_parse_ex()
323 e = p-1; in php_url_parse_ex()
699 char *s, *p; local
701 if ((p = strchr(Z_STRVAL_P(hdr), ':'))) {
702 c = *p;
703 *p = '\0';
704 s = p + 1;
709 …if ((prev_val = zend_hash_str_find(Z_ARRVAL_P(return_value), Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)…
710 …add_assoc_stringl_ex(return_value, Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)), s, (Z_STRLEN_P(hdr) - (…
716 *p = c;