Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e36d76b
construct.xml Fix classname and extra `e.g.`
mmalferov May 8, 2026
9afc946
getasciihost.xml Add more relevant non-ASCII URL for example
mmalferov May 9, 2026
221cc38
parse.xml Remove extra `e.g` and add missing `;` in the example
mmalferov May 9, 2026
9e66405
toasciistring.xml Give an URL relevant for the example
mmalferov May 12, 2026
7bb8004
tounicodestring.xml Show how method works
mmalferov May 14, 2026
d4d68b7
unserialize.xml Let's deserialize the array, not the parameter
mmalferov May 14, 2026
ae68858
getfragment.xml Show how the method works
mmalferov May 17, 2026
ab50e34
getfragment.xml Clarify fragment normalization
mmalferov May 17, 2026
32db5c3
language-snippets.ent Add the URI normalization snippet
mmalferov May 17, 2026
5cd2822
getfragment.xml Replace a literal sentence with a variable
mmalferov May 17, 2026
b20c7d8
gethost.xml Clarify normalization
mmalferov May 17, 2026
6c3b99a
getfragment.xml Move the normalization description to a `simpara`
mmalferov May 17, 2026
d83270b
gethost.xml Move the normalization description to a `simpara`
mmalferov May 17, 2026
5784dc8
gethost.xml Show an example of normalization
mmalferov May 17, 2026
6e41259
getpassword.xml Add normalization description
mmalferov May 17, 2026
eafbfe7
getpath.xml Mention normalization mechanism
mmalferov May 17, 2026
676c122
getpath.xml Show how the method works
mmalferov May 17, 2026
9cccaee
getport.xml Remove the mention of normalization
mmalferov May 17, 2026
9ea3183
getquery.xml Add the normalization description + show how the method …
mmalferov May 17, 2026
71ba3b6
language-snippets.ent Add the non-normalization snippet
mmalferov May 17, 2026
28ccf18
getrawfragment.xml Add the non-normalization desc
mmalferov May 17, 2026
ff3f2f2
getrawfragment.xml Show how the method works
mmalferov May 17, 2026
4386000
getrawhost.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
e8c7244
Update getrawhost.xml
mmalferov May 17, 2026
2b3d3d3
getrawpassword.xml Describe non-normalization + show how the method w…
mmalferov May 17, 2026
1115ff8
getrawpath.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
2499fbd
getrawquery.xml Describe non-serialization + show how the method works
mmalferov May 17, 2026
c5e4835
getrawscheme.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
94cfff9
getrawuserinfo.xml Describe non-normalization + amend the example
mmalferov May 17, 2026
efaaaf3
getrawpassword.xml Remove the mention of...
mmalferov May 17, 2026
945dfaa
getrawusername.xml Describe non-normalization
mmalferov May 17, 2026
6030aad
getscheme.xml Describe normalization + show how the method works
mmalferov May 17, 2026
29405aa
getuserinfo.xml Describe normalization + show how the method works
mmalferov May 17, 2026
b306af8
getusername.xml Describe normalization + show how the method works
mmalferov May 17, 2026
93111f4
Update language-snippets.ent
mmalferov May 17, 2026
cd27883
Update parse.xml Add missed `;`
mmalferov May 17, 2026
3de375d
resolve.xml The method works not only with URLs
mmalferov May 17, 2026
4ae8ce4
torawstring.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
9558fd5
tostring.xml Describe normalization + show how to method works
mmalferov May 17, 2026
460a138
Update withfragment.xml Add `<?php` tag
mmalferov May 17, 2026
52b494a
uri.whatwg.urlvalidationerrortype.xml Add missing desc
mmalferov May 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions language-snippets.ent
Original file line number Diff line number Diff line change
Expand Up @@ -4753,6 +4753,18 @@ local: {
</simpara>
'>

<!ENTITY uri.normalization '
<simpara>
Hexadecimal triplets are converted to uppercase, percent-encoded unreserved characters are decoded, and the scheme and host components are normalized to lowercase per RFC 3986.
</simpara>
'>

<!ENTITY uri.non-normalization '
<simpara>
Components are returned in their original form; hexadecimal triplets are not converted to uppercase, unreserved characters remain encoded, and case folding is not applied.
</simpara>
'>

<!-- UOPZ snippets -->

<!ENTITY uopz.warn.removed.function-5-0-0 '<warning
Expand Down
2 changes: 1 addition & 1 deletion reference/uri/uri.whatwg.urlvalidationerrortype.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

<enumitem>
<enumidentifier>Ipv4InIpv6InvalidCodePoint</enumidentifier>
<enumitemdescription>An IPv6 address with IPv4 address syntax.</enumitemdescription>
<enumitemdescription>An IPv6 address with IPv4 address syntax: an IPv4 part contains an invalid code point.</enumitemdescription>
</enumitem>

<enumitem>
Expand Down
7 changes: 4 additions & 3 deletions reference/uri/uri/rfc3986/uri/getfragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the normalized fragment component.
</simpara>
&uri.normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com#foo=bar");

$uri = new \Uri\Rfc3986\Uri("https://example.com#%5bfoo%2db%61r%5d");

echo $uri->getFragment();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo=bar
%5Bfoo-bar%5D
]]>
</screen>
</example>
Expand Down
5 changes: 3 additions & 2 deletions reference/uri/uri/rfc3986/uri/gethost.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the normalized host component.
</simpara>
&uri.normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,10 +36,10 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");

$uri = new \Uri\Rfc3986\Uri("https://ex%61mple.com");

echo $uri->getHost();
?>
]]>
</programlisting>
&example.outputs;
Expand Down
1 change: 1 addition & 0 deletions reference/uri/uri/rfc3986/uri/getpassword.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Retrieves the normalized password part (the text after the first <literal>:</literal> character)
from the userinfo component.
</simpara>
&uri.normalization;
</refsect1>

<refsect1 role="parameters">
Expand Down
5 changes: 3 additions & 2 deletions reference/uri/uri/rfc3986/uri/getpath.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the normalized path component.
</simpara>
&uri.normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,10 +36,10 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar");

$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/b%61r");

echo $uri->getPath();
?>
]]>
</programlisting>
&example.outputs;
Expand Down
8 changes: 4 additions & 4 deletions reference/uri/uri/rfc3986/uri/getport.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<refentry xml:id="uri-rfc3986-uri.getport" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Uri\Rfc3986\Uri::getPort</refname>
<refpurpose>Retrieve the normalized port component</refpurpose>
<refpurpose>Retrieve the port component</refpurpose>
</refnamediv>

<refsect1 role="description">
Expand All @@ -12,7 +12,7 @@
<void/>
</methodsynopsis>
<simpara>
Retrieves the normalized port component.
Retrieves the port component.
</simpara>
</refsect1>

Expand All @@ -24,7 +24,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Returns the normalized port component as an &integer; if the port component exists, &null; is returned otherwise.
Returns the port component as an &integer; if the port component exists, &null; is returned otherwise.
</simpara>
</refsect1>

Expand All @@ -35,10 +35,10 @@
<programlisting role="php">
<![CDATA[
<?php

$uri = new \Uri\Rfc3986\Uri("https://example.com:443");

echo $uri->getPort();
?>
]]>
</programlisting>
&example.outputs;
Expand Down
5 changes: 3 additions & 2 deletions reference/uri/uri/rfc3986/uri/getquery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the normalized query component.
</simpara>
&uri.normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,10 +36,10 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com?foo=bar");

$uri = new \Uri\Rfc3986\Uri("https://example.com?foo=b%61r");

echo $uri->getQuery();
?>
]]>
</programlisting>
&example.outputs;
Expand Down
7 changes: 4 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawfragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the raw (non-normalized) fragment component.
</simpara>
&uri.non-normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com#foo=bar");

$uri = new \Uri\Rfc3986\Uri("https://example.com#foo=b%61r");

echo $uri->getRawFragment();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo=bar
foo=b%61r
]]>
</screen>
</example>
Expand Down
7 changes: 4 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawhost.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the raw (non-normalized) host component.
</simpara>
&uri.non-normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");

$uri = new \Uri\Rfc3986\Uri("https://ex%61mple.com");

echo $uri->getRawHost();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
example.com
ex%61mple.com
]]>
</screen>
</example>
Expand Down
9 changes: 5 additions & 4 deletions reference/uri/uri/rfc3986/uri/getrawpassword.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Retrieves the raw (non-normalized) password part (the text after the first <literal>:</literal> character)
from the userinfo component.
</simpara>
&uri.non-normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -25,7 +26,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Returns the raw (non-normalized) password as a &string; if the userinfo component contains a <literal>:</literal> character.
Returns the raw password as a &string; if the userinfo component contains a <literal>:</literal> character.
An empty string is returned when the userinfo component doesn't contain a <literal>:</literal> character.
&null; is returned when the userinfo component doesn't exist.
</simpara>
Expand All @@ -38,16 +39,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

$uri = new \Uri\Rfc3986\Uri("https://user:p%61ssword@example.com");

echo $uri->getRawPassword();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
password
p%61ssword
]]>
</screen>
</example>
Expand Down
7 changes: 4 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawpath.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the raw (non-normalized) path component.
</simpara>
&uri.non-normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar");

$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/b%61r");

echo $uri->getRawPath();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
/foo/bar
/foo/b%61r
]]>
</screen>
</example>
Expand Down
7 changes: 4 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawquery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the raw (non-normalized) query component.
</simpara>
&uri.non-normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com?foo=bar");

$uri = new \Uri\Rfc3986\Uri("https://example.com?foo=b%61r");

echo $uri->getRawQuery();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo=bar
foo=b%61r
]]>
</screen>
</example>
Expand Down
7 changes: 4 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawscheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the raw (non-normalized) scheme component.
</simpara>
&uri.non-normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");

$uri = new \Uri\Rfc3986\Uri("httpS://example.com");

echo $uri->getRawScheme();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
https
httpS
]]>
</screen>
</example>
Expand Down
7 changes: 4 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawuserinfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<simpara>
Retrieves the raw (non-normalized) userinfo component.
</simpara>
&uri.non-normalization;
</refsect1>

<refsect1 role="parameters">
Expand All @@ -35,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

$uri = new \Uri\Rfc3986\Uri("https://user:p%61ssword@example.com");

echo $uri->getRawUserInfo();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
user:password
user:p%61ssword
]]>
</screen>
</example>
Expand Down
Loading