Lines Matching refs:scratch_len

124 	size_t scratch_len = 0;  in php_stream_url_wrap_http_ex()  local
372 scratch_len = strlen(path) + 29 + Z_STRLEN_P(tmpzval); in php_stream_url_wrap_http_ex()
373 scratch = emalloc(scratch_len); in php_stream_url_wrap_http_ex()
385 scratch_len = strlen(path) + 29 + protocol_version_len; in php_stream_url_wrap_http_ex()
386 scratch = emalloc(scratch_len); in php_stream_url_wrap_http_ex()
387 strncpy(scratch, "GET ", scratch_len); in php_stream_url_wrap_http_ex()
404 strlcat(scratch, resource->path, scratch_len); in php_stream_url_wrap_http_ex()
406 strlcat(scratch, "/", scratch_len); in php_stream_url_wrap_http_ex()
411 strlcat(scratch, "?", scratch_len); in php_stream_url_wrap_http_ex()
412 strlcat(scratch, resource->query, scratch_len); in php_stream_url_wrap_http_ex()
418 strlcat(scratch, " HTTP/", scratch_len); in php_stream_url_wrap_http_ex()
419 strlcat(scratch, protocol_version, scratch_len); in php_stream_url_wrap_http_ex()
420 strlcat(scratch, "\r\n", scratch_len); in php_stream_url_wrap_http_ex()
422 strlcat(scratch, " HTTP/1.0\r\n", scratch_len); in php_stream_url_wrap_http_ex()
555 if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", ZSTR_VAL(stmp)) > 0) { in php_stream_url_wrap_http_ex()
565 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) in php_stream_url_wrap_http_ex()
573 if (snprintf(scratch, scratch_len, "Host: %s:%i\r\n", resource->host, resource->port) > 0) in php_stream_url_wrap_http_ex()
576 if (snprintf(scratch, scratch_len, "Host: %s\r\n", resource->host) > 0) { in php_stream_url_wrap_http_ex()
631 scratch_len = slprintf(scratch, scratch_len, "Content-Length: %d\r\n", Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
632 php_stream_write(stream, scratch, scratch_len); in php_stream_url_wrap_http_ex()
646 scratch_len = slprintf(scratch, scratch_len, "Content-Length: %d\r\n", Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
647 php_stream_write(stream, scratch, scratch_len); in php_stream_url_wrap_http_ex()