Skip to content

Uri Fix classname and extra e.g., amend examples, describe normalization#5548

Open
mmalferov wants to merge 41 commits into
php:masterfrom
mmalferov:patch-62
Open

Uri Fix classname and extra e.g., amend examples, describe normalization#5548
mmalferov wants to merge 41 commits into
php:masterfrom
mmalferov:patch-62

Conversation

@mmalferov
Copy link
Copy Markdown
Member

No description provided.

@mmalferov mmalferov requested a review from TimWolla as a code owner May 8, 2026 23:45
@mmalferov mmalferov changed the title construct.xml Fix classname and extra e.g. Uri\WhatWg\Url::construct Fix classname and extra e.g. May 8, 2026
@mmalferov mmalferov changed the title Uri\WhatWg\Url::construct Fix classname and extra e.g. Uri\WhatWg\Url::construct Fix classname and extra e.g., amend example May 9, 2026
And is the return type `?static` accurate and not `?self` or literally `?Uri\WhatWg\Url`, and doesn't it confuse the reader, since the class is final?
@mmalferov mmalferov changed the title Uri\WhatWg\Url::construct Fix classname and extra e.g., amend example Uri\WhatWg\Url::construct Fix classname and extra e.g., amend examples May 9, 2026
mmalferov added 21 commits May 14, 2026 03:42
```PHP_METHOD(Uri_Rfc3986_Uri, getPort)
{
	php_uri_property_read_helper(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_URI_PROPERTY_NAME_PORT, PHP_URI_COMPONENT_READ_MODE_RAW);
}```

Judging by the source code, the `port` component, unlike the `password` or the `host` components, is not normalized. It seems that the mention of normalization was included in the description by mistake :)

```PHP_METHOD(Uri_Rfc3986_Uri, getPassword)
{
	php_uri_property_read_helper(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_URI_PROPERTY_NAME_PASSWORD, PHP_URI_COMPONENT_READ_MODE_NORMALIZED_ASCII);
}```
@mmalferov mmalferov changed the title Uri\WhatWg\Url::construct Fix classname and extra e.g., amend examples Uri Fix classname and extra e.g., amend examples May 17, 2026
@mmalferov mmalferov changed the title Uri Fix classname and extra e.g., amend examples Uri Fix classname and extra e.g., amend examples, describe normalization May 17, 2026
@jordikroon jordikroon requested a review from kocsismate May 17, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants