[php-src] master: Merge branch 'PHP-8.6'
| From: | Máté Kocsis | Date: | Fri, 30 Oct 2026 14:15:43 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.6' | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143006@lists.php.net to get a copy of this message | ||
Author: Máté Kocsis (kocsismate)
Date: 2026-10-30T15:15:23+01:00
Commit: https://github.com/php/php-src/commit/cb5c619b41eb7fa57b0f64001d8904e9541322c3
Raw diff: https://github.com/php/php-src/commit/cb5c619b41eb7fa57b0f64001d8904e9541322c3.diff
Merge branch 'PHP-8.6'
* PHP-8.6:
ext/uri: Fix decreasing of a cost variable
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++;