Lines Matching refs:s

234 			char *s, *p;  in php_stream_url_wrap_http_ex()  local
244 s = Z_STRVAL_PP(tmpheader); in php_stream_url_wrap_http_ex()
246 while (*s == ' ' || *s == '\t') s++; in php_stream_url_wrap_http_ex()
247 p = s; in php_stream_url_wrap_http_ex()
251 if (p - s == sizeof("Proxy-Authorization:") - 1 && in php_stream_url_wrap_http_ex()
252 zend_binary_strcasecmp(s, sizeof("Proxy-Authorization:") - 1, in php_stream_url_wrap_http_ex()
255 smart_str_appendl(&header, s, p - s); in php_stream_url_wrap_http_ex()
262 s = p; in php_stream_url_wrap_http_ex()
263 while (*s == '\r' || *s == '\n') s++; in php_stream_url_wrap_http_ex()
264 } while (*s != 0); in php_stream_url_wrap_http_ex()
268 s = Z_STRVAL_PP(tmpzval); in php_stream_url_wrap_http_ex()
270 while (*s == ' ' || *s == '\t') s++; in php_stream_url_wrap_http_ex()
271 p = s; in php_stream_url_wrap_http_ex()
275 if (p - s == sizeof("Proxy-Authorization:") - 1 && in php_stream_url_wrap_http_ex()
276 zend_binary_strcasecmp(s, sizeof("Proxy-Authorization:") - 1, in php_stream_url_wrap_http_ex()
279 smart_str_appendl(&header, s, p - s); in php_stream_url_wrap_http_ex()
286 s = p; in php_stream_url_wrap_http_ex()
287 while (*s == '\r' || *s == '\n') s++; in php_stream_url_wrap_http_ex()
288 } while (*s != 0); in php_stream_url_wrap_http_ex()
450 char *s; in php_stream_url_wrap_http_ex() local
463 if ((s = strstr(tmp, "user-agent:")) && in php_stream_url_wrap_http_ex()
464 (s == tmp || *(s-1) == '\r' || *(s-1) == '\n' || in php_stream_url_wrap_http_ex()
465 *(s-1) == '\t' || *(s-1) == ' ')) { in php_stream_url_wrap_http_ex()
468 if ((s = strstr(tmp, "host:")) && in php_stream_url_wrap_http_ex()
469 (s == tmp || *(s-1) == '\r' || *(s-1) == '\n' || in php_stream_url_wrap_http_ex()
470 *(s-1) == '\t' || *(s-1) == ' ')) { in php_stream_url_wrap_http_ex()
473 if ((s = strstr(tmp, "from:")) && in php_stream_url_wrap_http_ex()
474 (s == tmp || *(s-1) == '\r' || *(s-1) == '\n' || in php_stream_url_wrap_http_ex()
475 *(s-1) == '\t' || *(s-1) == ' ')) { in php_stream_url_wrap_http_ex()
478 if ((s = strstr(tmp, "authorization:")) && in php_stream_url_wrap_http_ex()
479 (s == tmp || *(s-1) == '\r' || *(s-1) == '\n' || in php_stream_url_wrap_http_ex()
480 *(s-1) == '\t' || *(s-1) == ' ')) { in php_stream_url_wrap_http_ex()
483 if ((s = strstr(tmp, "content-length:")) && in php_stream_url_wrap_http_ex()
484 (s == tmp || *(s-1) == '\r' || *(s-1) == '\n' || in php_stream_url_wrap_http_ex()
485 *(s-1) == '\t' || *(s-1) == ' ')) { in php_stream_url_wrap_http_ex()
488 if ((s = strstr(tmp, "content-type:")) && in php_stream_url_wrap_http_ex()
489 (s == tmp || *(s-1) == '\r' || *(s-1) == '\n' || in php_stream_url_wrap_http_ex()
490 *(s-1) == '\t' || *(s-1) == ' ')) { in php_stream_url_wrap_http_ex()
494 if (use_proxy && use_ssl && (s = strstr(tmp, "proxy-authorization:")) && in php_stream_url_wrap_http_ex()
495 (s == tmp || *(s-1) == '\r' || *(s-1) == '\n' || in php_stream_url_wrap_http_ex()
496 *(s-1) == '\t' || *(s-1) == ' ')) { in php_stream_url_wrap_http_ex()
497 char *p = s + sizeof("proxy-authorization:") - 1; in php_stream_url_wrap_http_ex()
499 while (s > tmp && (*(s-1) == ' ' || *(s-1) == '\t')) s--; in php_stream_url_wrap_http_ex()
503 if (s == tmp) { in php_stream_url_wrap_http_ex()
507 while (s > tmp && (*(s-1) == '\r' || *(s-1) == '\n')) s--; in php_stream_url_wrap_http_ex()
508 user_headers[s - tmp] = 0; in php_stream_url_wrap_http_ex()
511 memmove(user_headers + (s - tmp), user_headers + (p - tmp), strlen(p) + 1); in php_stream_url_wrap_http_ex()
817 char *s = strrchr(resource->path, '/'); in php_stream_url_wrap_http_ex() local
818 if (!s) { in php_stream_url_wrap_http_ex()
819 s = resource->path; in php_stream_url_wrap_http_ex()
820 if (!s[0]) { in php_stream_url_wrap_http_ex()
821 efree(s); in php_stream_url_wrap_http_ex()
822 s = resource->path = estrdup("/"); in php_stream_url_wrap_http_ex()
824 *s = '/'; in php_stream_url_wrap_http_ex()
827 s[1] = '\0'; in php_stream_url_wrap_http_ex()
857 unsigned char *s, *e; \ in php_stream_url_wrap_http_ex()
860 s = (unsigned char*)val; e = s + l; \ in php_stream_url_wrap_http_ex()
861 while (s < e) { \ in php_stream_url_wrap_http_ex()
862 if (iscntrl(*s)) { \ in php_stream_url_wrap_http_ex()
866 s++; \ in php_stream_url_wrap_http_ex()