diff --git a/language-snippets.ent b/language-snippets.ent index d98bb6831217..c678ce86b01c 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -4436,6 +4436,18 @@ local: { '> + + Hexadecimal triplets are converted to uppercase, percent-encoded unreserved characters are decoded, the scheme and host components are normalized to lowercase, and dot segments are removed from the path, per RFC 3986. + +'> + + + Hexadecimal triplets are not converted to uppercase, percent-encoded unreserved characters remain encoded, the scheme and host components keep the case they were given in, and dot segments are kept in the path. + +'> + Ipv4InIpv6InvalidCodePoint - An IPv6 address with IPv4 address syntax. + An IPv6 address with IPv4 address syntax: an IPv4 part is empty, contains a non-ASCII digit or a leading zero, or there are too many IPv4 parts. diff --git a/reference/uri/uri/rfc3986/uri/getfragment.xml b/reference/uri/uri/rfc3986/uri/getfragment.xml index 0fecabee30e8..d003dd298cd6 100644 --- a/reference/uri/uri/rfc3986/uri/getfragment.xml +++ b/reference/uri/uri/rfc3986/uri/getfragment.xml @@ -14,6 +14,7 @@ Retrieves the normalized fragment component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/gethost.xml b/reference/uri/uri/rfc3986/uri/gethost.xml index 4a033e4bfea9..c26fa1e8d622 100644 --- a/reference/uri/uri/rfc3986/uri/gethost.xml +++ b/reference/uri/uri/rfc3986/uri/gethost.xml @@ -14,6 +14,7 @@ Retrieves the normalized host component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getpassword.xml b/reference/uri/uri/rfc3986/uri/getpassword.xml index a5a6d271745f..1a0ff8b8fff7 100644 --- a/reference/uri/uri/rfc3986/uri/getpassword.xml +++ b/reference/uri/uri/rfc3986/uri/getpassword.xml @@ -15,6 +15,7 @@ Retrieves the normalized password part (the text after the first : character) from the userinfo component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getpath.xml b/reference/uri/uri/rfc3986/uri/getpath.xml index e302667ff34f..45e2a648afaa 100644 --- a/reference/uri/uri/rfc3986/uri/getpath.xml +++ b/reference/uri/uri/rfc3986/uri/getpath.xml @@ -14,6 +14,7 @@ Retrieves the normalized path component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getquery.xml b/reference/uri/uri/rfc3986/uri/getquery.xml index 2ae16d783772..bceb5e2a3f53 100644 --- a/reference/uri/uri/rfc3986/uri/getquery.xml +++ b/reference/uri/uri/rfc3986/uri/getquery.xml @@ -14,6 +14,7 @@ Retrieves the normalized query component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawfragment.xml b/reference/uri/uri/rfc3986/uri/getrawfragment.xml index f2e6256bfc3d..0b9bcc227691 100644 --- a/reference/uri/uri/rfc3986/uri/getrawfragment.xml +++ b/reference/uri/uri/rfc3986/uri/getrawfragment.xml @@ -14,6 +14,7 @@ Retrieves the raw (non-normalized) fragment component. + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawhost.xml b/reference/uri/uri/rfc3986/uri/getrawhost.xml index 66798f2af8e8..2852bbf90e4e 100644 --- a/reference/uri/uri/rfc3986/uri/getrawhost.xml +++ b/reference/uri/uri/rfc3986/uri/getrawhost.xml @@ -14,6 +14,7 @@ Retrieves the raw (non-normalized) host component. + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawpassword.xml b/reference/uri/uri/rfc3986/uri/getrawpassword.xml index cbf4a8367347..6f45012ebda9 100644 --- a/reference/uri/uri/rfc3986/uri/getrawpassword.xml +++ b/reference/uri/uri/rfc3986/uri/getrawpassword.xml @@ -15,6 +15,7 @@ Retrieves the raw (non-normalized) password part (the text after the first : character) from the userinfo component. + &uri.non-normalization; @@ -25,7 +26,7 @@ &reftitle.returnvalues; - Returns the raw (non-normalized) password as a &string; if the userinfo component contains a : character. + Returns the raw password as a &string; if the userinfo component contains a : character. An empty string is returned when the userinfo component doesn't contain a : character. &null; is returned when the userinfo component doesn't exist. diff --git a/reference/uri/uri/rfc3986/uri/getrawpath.xml b/reference/uri/uri/rfc3986/uri/getrawpath.xml index 82779af66927..5fe29ab47648 100644 --- a/reference/uri/uri/rfc3986/uri/getrawpath.xml +++ b/reference/uri/uri/rfc3986/uri/getrawpath.xml @@ -14,6 +14,7 @@ Retrieves the raw (non-normalized) path component. + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawquery.xml b/reference/uri/uri/rfc3986/uri/getrawquery.xml index 7b0323f79f27..b796dee89b1c 100644 --- a/reference/uri/uri/rfc3986/uri/getrawquery.xml +++ b/reference/uri/uri/rfc3986/uri/getrawquery.xml @@ -14,6 +14,7 @@ Retrieves the raw (non-normalized) query component. + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawscheme.xml b/reference/uri/uri/rfc3986/uri/getrawscheme.xml index ff6130f94537..d31517f9de42 100644 --- a/reference/uri/uri/rfc3986/uri/getrawscheme.xml +++ b/reference/uri/uri/rfc3986/uri/getrawscheme.xml @@ -14,6 +14,7 @@ Retrieves the raw (non-normalized) scheme component. + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml b/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml index 57a32f30a165..1db52105a740 100644 --- a/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml +++ b/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml @@ -14,6 +14,7 @@ Retrieves the raw (non-normalized) userinfo component. + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawusername.xml b/reference/uri/uri/rfc3986/uri/getrawusername.xml index 5dff1a6903af..b827cc3b30a2 100644 --- a/reference/uri/uri/rfc3986/uri/getrawusername.xml +++ b/reference/uri/uri/rfc3986/uri/getrawusername.xml @@ -15,6 +15,7 @@ Retrieves the raw (non-normalized) username part (the text before the first : character) from userinfo component. + &uri.non-normalization; @@ -25,7 +26,7 @@ &reftitle.returnvalues; - Returns the raw (non-normalized) username as a &string; if the userinfo component exists, &null; is returned otherwise. + Returns the raw username as a &string; if the userinfo component exists, &null; is returned otherwise. diff --git a/reference/uri/uri/rfc3986/uri/getscheme.xml b/reference/uri/uri/rfc3986/uri/getscheme.xml index 81ad886924a7..fd1d1b0f9e52 100644 --- a/reference/uri/uri/rfc3986/uri/getscheme.xml +++ b/reference/uri/uri/rfc3986/uri/getscheme.xml @@ -14,6 +14,7 @@ Retrieves the normalized scheme component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getuserinfo.xml b/reference/uri/uri/rfc3986/uri/getuserinfo.xml index cd8cf4b9975e..00a7005d655c 100644 --- a/reference/uri/uri/rfc3986/uri/getuserinfo.xml +++ b/reference/uri/uri/rfc3986/uri/getuserinfo.xml @@ -14,6 +14,7 @@ Retrieves the normalized userinfo component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getusername.xml b/reference/uri/uri/rfc3986/uri/getusername.xml index 717753632e8b..ec0afc3ed419 100644 --- a/reference/uri/uri/rfc3986/uri/getusername.xml +++ b/reference/uri/uri/rfc3986/uri/getusername.xml @@ -15,6 +15,7 @@ Retrieves the normalized username part (the text before the first : character) from the userinfo component. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/parse.xml b/reference/uri/uri/rfc3986/uri/parse.xml index ee962da2b3de..80e68a4070a8 100644 --- a/reference/uri/uri/rfc3986/uri/parse.xml +++ b/reference/uri/uri/rfc3986/uri/parse.xml @@ -56,6 +56,7 @@ ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/resolve.xml b/reference/uri/uri/rfc3986/uri/resolve.xml index 68f162ba0ee2..4e028cf14294 100644 --- a/reference/uri/uri/rfc3986/uri/resolve.xml +++ b/reference/uri/uri/rfc3986/uri/resolve.xml @@ -2,7 +2,7 @@ Uri\Rfc3986\Uri::resolve - Resolve a URI with the current object as the base URL + Resolve a URI with the current object as the base URI @@ -12,7 +12,7 @@ stringuri - Resolves a URI - which may potentially be a relative reference - with the current object as the base URL. + Resolves a URI - which may potentially be a relative reference - with the current object as the base URI. @@ -49,11 +49,11 @@ resolve("/foo"); echo $uri->toRawString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/torawstring.xml b/reference/uri/uri/rfc3986/uri/torawstring.xml index b8ccbe91d6d2..1bf68c3841b1 100644 --- a/reference/uri/uri/rfc3986/uri/torawstring.xml +++ b/reference/uri/uri/rfc3986/uri/torawstring.xml @@ -14,6 +14,12 @@ Recomposes the raw (non-normalized) URI to a &string;. + &uri.non-normalization; + + An IPv6 host is an exception: it is recomposed from its parsed form, and is + therefore returned fully expanded and in lowercase, whatever notation the + input used. + @@ -24,7 +30,7 @@ &reftitle.returnvalues; - Returns the recomposed raw (non-normalized) URI as a &string;. + Returns the recomposed raw URI as a &string;. diff --git a/reference/uri/uri/rfc3986/uri/tostring.xml b/reference/uri/uri/rfc3986/uri/tostring.xml index 713d44c50181..b7cdc1938530 100644 --- a/reference/uri/uri/rfc3986/uri/tostring.xml +++ b/reference/uri/uri/rfc3986/uri/tostring.xml @@ -14,6 +14,7 @@ Recomposes the normalized URI to a &string;. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/withfragment.xml b/reference/uri/uri/rfc3986/uri/withfragment.xml index a8760f6926fc..b0345bb362df 100644 --- a/reference/uri/uri/rfc3986/uri/withfragment.xml +++ b/reference/uri/uri/rfc3986/uri/withfragment.xml @@ -49,11 +49,11 @@ withFragment("bar"); echo $uri->getFragment(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/construct.xml b/reference/uri/uri/whatwg/url/construct.xml index 3eb638ca6930..baf904aa8e4d 100644 --- a/reference/uri/uri/whatwg/url/construct.xml +++ b/reference/uri/uri/whatwg/url/construct.xml @@ -14,7 +14,7 @@ arraysoftErrors&null; - Constructs the Uri\Rfc3986\Uri object. + Constructs the Uri\WhatWg\Url object. @@ -25,7 +25,10 @@ uri - A valid URL string to parse (e.g. /foo or (e.g. https://example.com/foo). + A URL string to parse, for instance + https://example.com/foo. A relative-URL string such as + /foo is only accepted when + baseUrl is given. diff --git a/reference/uri/uri/whatwg/url/getasciihost.xml b/reference/uri/uri/whatwg/url/getasciihost.xml index 0f239f583868..7fb29b7a28b5 100644 --- a/reference/uri/uri/whatwg/url/getasciihost.xml +++ b/reference/uri/uri/whatwg/url/getasciihost.xml @@ -35,16 +35,16 @@ getAsciiHost(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/parse.xml b/reference/uri/uri/whatwg/url/parse.xml index a14cb5ebf7a8..9578ade6ff55 100644 --- a/reference/uri/uri/whatwg/url/parse.xml +++ b/reference/uri/uri/whatwg/url/parse.xml @@ -25,7 +25,10 @@ uri - A valid URL string to parse (e.g. /foo or (e.g. https://example.com/foo). + A URL string to parse, for instance + https://example.com/foo. A relative-URL string such as + /foo is only accepted when + baseUrl is given. @@ -66,6 +69,7 @@ ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/resolve.xml b/reference/uri/uri/whatwg/url/resolve.xml index 4132ecd7a782..d0a68f4d71fb 100644 --- a/reference/uri/uri/whatwg/url/resolve.xml +++ b/reference/uri/uri/whatwg/url/resolve.xml @@ -24,7 +24,7 @@ uri - A valid URL string (e.g. /foo or (e.g. https://example.com/foo) to apply on + A valid URL string (e.g. /foo or https://example.com/foo) to apply on the current object. diff --git a/reference/uri/uri/whatwg/url/toasciistring.xml b/reference/uri/uri/whatwg/url/toasciistring.xml index f53c6f5b2016..e25d35e44a9b 100644 --- a/reference/uri/uri/whatwg/url/toasciistring.xml +++ b/reference/uri/uri/whatwg/url/toasciistring.xml @@ -36,16 +36,16 @@ toAsciiString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/tounicodestring.xml b/reference/uri/uri/whatwg/url/tounicodestring.xml index c45b34fd134a..1d5b24a6f22d 100644 --- a/reference/uri/uri/whatwg/url/tounicodestring.xml +++ b/reference/uri/uri/whatwg/url/tounicodestring.xml @@ -35,16 +35,16 @@ toUnicodeString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/unserialize.xml b/reference/uri/uri/whatwg/url/unserialize.xml index 0a18cacb8718..2f6b3286eba1 100644 --- a/reference/uri/uri/whatwg/url/unserialize.xml +++ b/reference/uri/uri/whatwg/url/unserialize.xml @@ -2,7 +2,7 @@ Uri\WhatWg\Url::__unserialize - Deserialize the data parameter into a Url object + Deserialize the array from the data parameter into a Url object @@ -12,7 +12,7 @@ arraydata - Deserializes a data parameter into a Uri\WhatWg\Url object. + Deserializes the &array; from the data parameter into a Uri\WhatWg\Url object.