Commit 4999bcb29cb for php.net
commit 4999bcb29cbf1da7eb90365f0eb8cab416b8778a
Author: Máté Kocsis <kocsismate@woohoolabs.com>
Date: Fri Jul 3 14:34:11 2026 +0200
Fix Ipv6 and ipvfuture address validation to use PHP's built-in memory manager (#22571)
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
diff --git a/ext/uri/uri_parser_rfc3986.c b/ext/uri/uri_parser_rfc3986.c
index 88201914d59..f4f5f2bf5bd 100644
--- a/ext/uri/uri_parser_rfc3986.c
+++ b/ext/uri/uri_parser_rfc3986.c
@@ -737,13 +737,13 @@ ZEND_ATTRIBUTE_NONNULL zend_result php_uri_parser_rfc3986_validate_host(const ze
if (len >= 2 && (p[1] == 'v' || p[1] == 'V')) {
return php_uri_parser_rfc3986_validate_component_result(
- uriIsWellFormedHostIpFutureA(p + 1, p + len - 1) == URI_SUCCESS,
+ uriIsWellFormedHostIpFutureMmA(p + 1, p + len - 1, mm) == URI_SUCCESS,
"host"
);
}
return php_uri_parser_rfc3986_validate_component_result(
- uriIsWellFormedHostIp6A(p + 1, p + len - 1) == URI_SUCCESS,
+ uriIsWellFormedHostIp6MmA(p + 1, p + len - 1, mm) == URI_SUCCESS,
"host"
);
}