1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

uri: Retrieve “raw” representation for ->getPort() (#19646)

The implementation only supports one possible representation of the port.
Retrieve the raw representation to avoid unnecessarily normalizing the URI for
uri_parser_rfc3986.
This commit is contained in:
Tim Düsterhus
2025-08-30 23:37:39 +02:00
committed by GitHub
parent d24eab58e1
commit 3bf495b5cc

View File

@@ -555,7 +555,7 @@ PHP_METHOD(Uri_Rfc3986_Uri, getRawHost)
PHP_METHOD(Uri_Rfc3986_Uri, getPort)
{
uri_read_component(INTERNAL_FUNCTION_PARAM_PASSTHRU, URI_PROPERTY_NAME_PORT, URI_COMPONENT_READ_NORMALIZED_ASCII);
uri_read_component(INTERNAL_FUNCTION_PARAM_PASSTHRU, URI_PROPERTY_NAME_PORT, URI_COMPONENT_READ_RAW);
}
PHP_METHOD(Uri_Rfc3986_Uri, getPath)