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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user