[php-src] master: standard/http_fopen_wrapper: add const qualifiers

From: Date: Fri, 31 Jul 2026 09:53:29 +0000
Subject: [php-src] master: standard/http_fopen_wrapper: add const qualifiers
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-140360@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Date: 2026-07-31T10:53:18+01:00 Commit: https://github.com/php/php-src/commit/9658dfc1f302f2c9e2c4918af3171ae68fc298e3 Raw diff: https://github.com/php/php-src/commit/9658dfc1f302f2c9e2c4918af3171ae68fc298e3.diff standard/http_fopen_wrapper: add const qualifiers Changed paths: M ext/standard/http_fopen_wrapper.c Diff: diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 4b2aa7116a24..9301536458a6 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -206,7 +206,7 @@ static zend_string *php_stream_http_response_headers_parse(php_stream_wrapper *w /* Process folding headers if starting with a space or a tab. */ if (header_line && (*header_line == ' ' || *header_line == '\t')) { - char *http_folded_header_line = header_line; + const char *http_folded_header_line = header_line; size_t http_folded_header_line_length = *header_line_length; /* Remove the leading white spaces. */ 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 char *last_header_value = memchr(last_header_line, ':', last_header_line_length); if (last_header_value) { /* Verify there is no space in header name */ - char *last_header_name = last_header_line + 1; + const char *last_header_name = last_header_line + 1; while (last_header_name < last_header_value) { if (*last_header_name == ' ' || *last_header_name == '\t') { header_info->error = true;

« previous php.cvs (#140360) next »