Commit 91dc8871637 for php
commit 91dc887163795906f353fb82711e79417db015fa
Author: Máté Kocsis <kocsismate90@gmail.com>
Date: Fri Oct 30 15:14:59 2026 +0100
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.
diff --git a/ext/uri/uri_parser_rfc3986.c b/ext/uri/uri_parser_rfc3986.c
index 75e45a8c4b5..94e6e0caffd 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++;