[php-src] PHP-8.6: ext/uri: Fix decreasing of a cost variable
| From: | Máté Kocsis | Date: | Fri, 30 Oct 2026 14:15:43 +0000 |
| Subject: | [php-src] PHP-8.6: ext/uri: Fix decreasing of a cost variable | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143005@lists.php.net to get a copy of this message | ||
Author: Máté Kocsis (kocsismate)
Date: 2026-10-30T15:14:59+01:00
Commit: https://github.com/php/php-src/commit/91dc887163795906f353fb82711e79417db015fa
Raw diff: https://github.com/php/php-src/commit/91dc887163795906f353fb82711e79417db015fa.diff
ext/uri: Fix decreasing of a cost variable
It happened during merging https://github.com/php/php-src/pull/25026 to
8.5, because the same parameter wasn't const back then.
Changed paths:
M ext/uri/uri_parser_rfc3986.c
Diff:
diff --git a/ext/uri/uri_parser_rfc3986.c b/ext/uri/uri_parser_rfc3986.c
index 75e45a8c4b50..94e6e0caffd3 100644
--- a/ext/uri/uri_parser_rfc3986.c
+++ b/ext/uri/uri_parser_rfc3986.c
@@ -383,7 +383,7 @@ static zend_result php_uri_parser_rfc3986_host_write(void *uri, const zval *valu
}
}
-ZEND_ATTRIBUTE_NONNULL static zend_long port_str_to_zend_long_checked(const char *str, const size_t
len)
+ZEND_ATTRIBUTE_NONNULL static zend_long port_str_to_zend_long_checked(const char *str, size_t len)
{
while (len > 1 && *str == '0') {
str++;