Skip to content

Commit 2502608

Browse files
committed
standard/http_fopen_wrapper: add const qualifiers
1 parent e35324f commit 2502608

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/standard/http_fopen_wrapper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static zend_string *php_stream_http_response_headers_parse(php_stream_wrapper *w
206206

207207
/* Process folding headers if starting with a space or a tab. */
208208
if (header_line && (*header_line == ' ' || *header_line == '\t')) {
209-
char *http_folded_header_line = header_line;
209+
const char *http_folded_header_line = header_line;
210210
size_t http_folded_header_line_length = *header_line_length;
211211
/* Remove the leading white spaces. */
212212
while (*http_folded_header_line == ' ' || *http_folded_header_line == '\t') {
@@ -232,7 +232,7 @@ static zend_string *php_stream_http_response_headers_parse(php_stream_wrapper *w
232232
char *last_header_value = memchr(last_header_line, ':', last_header_line_length);
233233
if (last_header_value) {
234234
/* Verify there is no space in header name */
235-
char *last_header_name = last_header_line + 1;
235+
const char *last_header_name = last_header_line + 1;
236236
while (last_header_name < last_header_value) {
237237
if (*last_header_name == ' ' || *last_header_name == '\t') {
238238
header_info->error = true;

0 commit comments

Comments
 (0)