Lines Matching refs:tmp

118 	char *tmp = NULL;  in php_stream_url_wrap_http_ex()  local
422 tmp = NULL; in php_stream_url_wrap_http_ex()
441 tmp = php_trim(tmpstr.c, strlen(tmpstr.c), NULL, 0, NULL, 3 TSRMLS_CC); in php_stream_url_wrap_http_ex()
447 tmp = php_trim(Z_STRVAL_PP(tmpzval), Z_STRLEN_PP(tmpzval), NULL, 0, NULL, 3 TSRMLS_CC); in php_stream_url_wrap_http_ex()
449 if (tmp && strlen(tmp) > 0) { in php_stream_url_wrap_http_ex()
452 user_headers = estrdup(tmp); in php_stream_url_wrap_http_ex()
455 php_strtolower(tmp, strlen(tmp)); in php_stream_url_wrap_http_ex()
459 strip_header(user_headers, tmp, "content-length:"); in php_stream_url_wrap_http_ex()
460 strip_header(user_headers, tmp, "content-type:"); in php_stream_url_wrap_http_ex()
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()
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()
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()
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()
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()
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()
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()
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()
516 if (tmp) { in php_stream_url_wrap_http_ex()
517 efree(tmp); in php_stream_url_wrap_http_ex()
536 tmp = (char*)php_base64_encode((unsigned char*)scratch, strlen(scratch), NULL); in php_stream_url_wrap_http_ex()
538 if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", tmp) > 0) { in php_stream_url_wrap_http_ex()
543 efree(tmp); in php_stream_url_wrap_http_ex()
544 tmp = NULL; in php_stream_url_wrap_http_ex()