Skip to content

Commit 1981833

Browse files
committed
uri: Retrieve “raw” representation for ->getPort()
The implementation only supports one possible representation of the port. Retrieve the raw representation to avoid unnecessarily normalizing the URI for uri_parser_rfc3986.
1 parent 243aedd commit 1981833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/uri/php_uri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ PHP_METHOD(Uri_Rfc3986_Uri, getRawHost)
555555

556556
PHP_METHOD(Uri_Rfc3986_Uri, getPort)
557557
{
558-
uri_read_component(INTERNAL_FUNCTION_PARAM_PASSTHRU, URI_PROPERTY_NAME_PORT, URI_COMPONENT_READ_NORMALIZED_ASCII);
558+
uri_read_component(INTERNAL_FUNCTION_PARAM_PASSTHRU, URI_PROPERTY_NAME_PORT, URI_COMPONENT_READ_RAW);
559559
}
560560

561561
PHP_METHOD(Uri_Rfc3986_Uri, getPath)

0 commit comments

Comments
 (0)