Lines Matching refs:scratch_len

121 	int scratch_len = 0;  in php_stream_url_wrap_http_ex()  local
355 scratch_len = strlen(path) + 29 + Z_STRLEN_PP(tmpzval); in php_stream_url_wrap_http_ex()
356 scratch = emalloc(scratch_len); in php_stream_url_wrap_http_ex()
370 scratch_len = strlen(path) + 29 + protocol_version_len; in php_stream_url_wrap_http_ex()
371 scratch = emalloc(scratch_len); in php_stream_url_wrap_http_ex()
372 strncpy(scratch, "GET ", scratch_len); in php_stream_url_wrap_http_ex()
395 strlcat(scratch, resource->path, scratch_len); in php_stream_url_wrap_http_ex()
397 strlcat(scratch, "/", scratch_len); in php_stream_url_wrap_http_ex()
402 strlcat(scratch, "?", scratch_len); in php_stream_url_wrap_http_ex()
403 strlcat(scratch, resource->query, scratch_len); in php_stream_url_wrap_http_ex()
409 strlcat(scratch, " HTTP/", scratch_len); in php_stream_url_wrap_http_ex()
410 strlcat(scratch, protocol_version, scratch_len); in php_stream_url_wrap_http_ex()
411 strlcat(scratch, "\r\n", scratch_len); in php_stream_url_wrap_http_ex()
415 strlcat(scratch, " HTTP/1.0\r\n", scratch_len); 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()
549 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) in php_stream_url_wrap_http_ex()
557 if (snprintf(scratch, scratch_len, "Host: %s:%i\r\n", resource->host, resource->port) > 0) in php_stream_url_wrap_http_ex()
560 if (snprintf(scratch, scratch_len, "Host: %s\r\n", resource->host) > 0) { in php_stream_url_wrap_http_ex()
608 scratch_len = slprintf(scratch, scratch_len, "Content-Length: %d\r\n", Z_STRLEN_PP(tmpzval)); in php_stream_url_wrap_http_ex()
609 php_stream_write(stream, scratch, scratch_len); in php_stream_url_wrap_http_ex()
623 scratch_len = slprintf(scratch, scratch_len, "Content-Length: %d\r\n", Z_STRLEN_PP(tmpzval)); in php_stream_url_wrap_http_ex()
624 php_stream_write(stream, scratch, scratch_len); in php_stream_url_wrap_http_ex()