diff --git a/language-snippets.ent b/language-snippets.ent index 4ba0f81d1826..86d703de5102 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -4753,6 +4753,18 @@ local: { '> + + 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. + +'> + + + Components are returned in their original form; hexadecimal triplets are not converted to uppercase, unreserved characters remain encoded, and case folding is not applied. + +'> + Ipv4InIpv6InvalidCodePoint - An IPv6 address with IPv4 address syntax. + An IPv6 address with IPv4 address syntax: an IPv4 part contains an invalid code point. diff --git a/reference/uri/uri/rfc3986/uri/getfragment.xml b/reference/uri/uri/rfc3986/uri/getfragment.xml index 0fecabee30e8..58b2aad53c9e 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; @@ -35,16 +36,16 @@ getFragment(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/gethost.xml b/reference/uri/uri/rfc3986/uri/gethost.xml index 4a033e4bfea9..b1e5df80d806 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; @@ -35,10 +36,10 @@ getHost(); -?> ]]> &example.outputs; 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..0e2a641a06d2 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; @@ -35,10 +36,10 @@ getPath(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getport.xml b/reference/uri/uri/rfc3986/uri/getport.xml index f62387858b9c..1e4f93e5bdb1 100644 --- a/reference/uri/uri/rfc3986/uri/getport.xml +++ b/reference/uri/uri/rfc3986/uri/getport.xml @@ -2,7 +2,7 @@ Uri\Rfc3986\Uri::getPort - Retrieve the normalized port component + Retrieve the port component @@ -12,7 +12,7 @@ - Retrieves the normalized port component. + Retrieves the port component. @@ -24,7 +24,7 @@ &reftitle.returnvalues; - 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. @@ -35,10 +35,10 @@ getPort(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getquery.xml b/reference/uri/uri/rfc3986/uri/getquery.xml index 2ae16d783772..3887289fb54e 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; @@ -35,10 +36,10 @@ getQuery(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawfragment.xml b/reference/uri/uri/rfc3986/uri/getrawfragment.xml index f2e6256bfc3d..2d467387d9ac 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; @@ -35,16 +36,16 @@ getRawFragment(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawhost.xml b/reference/uri/uri/rfc3986/uri/getrawhost.xml index 66798f2af8e8..dc2e431a31f4 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; @@ -35,16 +36,16 @@ getRawHost(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawpassword.xml b/reference/uri/uri/rfc3986/uri/getrawpassword.xml index cbf4a8367347..1d5f5625d531 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. @@ -38,16 +39,16 @@ getRawPassword(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawpath.xml b/reference/uri/uri/rfc3986/uri/getrawpath.xml index 82779af66927..2a07926478d1 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; @@ -35,16 +36,16 @@ getRawPath(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawquery.xml b/reference/uri/uri/rfc3986/uri/getrawquery.xml index 7b0323f79f27..342666617b81 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; @@ -35,16 +36,16 @@ getRawQuery(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawscheme.xml b/reference/uri/uri/rfc3986/uri/getrawscheme.xml index ff6130f94537..26b822fc5481 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; @@ -35,16 +36,16 @@ getRawScheme(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml b/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml index 57a32f30a165..7b0080c88848 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; @@ -35,16 +36,16 @@ getRawUserInfo(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getrawusername.xml b/reference/uri/uri/rfc3986/uri/getrawusername.xml index 5dff1a6903af..bf2e8fe17764 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. @@ -36,16 +37,16 @@ getRawUsername(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getscheme.xml b/reference/uri/uri/rfc3986/uri/getscheme.xml index 81ad886924a7..1bce56e0f24b 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; @@ -35,10 +36,10 @@ getScheme(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getuserinfo.xml b/reference/uri/uri/rfc3986/uri/getuserinfo.xml index cd8cf4b9975e..1b4321ff67c5 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; @@ -35,10 +36,10 @@ getUserInfo(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/getusername.xml b/reference/uri/uri/rfc3986/uri/getusername.xml index 717753632e8b..d3eca5ea32cd 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; @@ -36,10 +37,10 @@ getUsername(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/parse.xml b/reference/uri/uri/rfc3986/uri/parse.xml index dfd03e2aebaa..80e68a4070a8 100644 --- a/reference/uri/uri/rfc3986/uri/parse.xml +++ b/reference/uri/uri/rfc3986/uri/parse.xml @@ -56,14 +56,14 @@ toString(); } else { - echo "Invalid URI" + echo "Invalid URI"; } -?> ]]> &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..b7bb60bd5f4f 100644 --- a/reference/uri/uri/rfc3986/uri/torawstring.xml +++ b/reference/uri/uri/rfc3986/uri/torawstring.xml @@ -14,6 +14,7 @@ Recomposes the raw (non-normalized) URI to a &string;. + &uri.non-normalization; @@ -24,7 +25,7 @@ &reftitle.returnvalues; - Returns the recomposed raw (non-normalized) URI as a &string;. + Returns the recomposed raw URI as a &string;. @@ -35,16 +36,16 @@ toRawString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/tostring.xml b/reference/uri/uri/rfc3986/uri/tostring.xml index 713d44c50181..b370c128a7ad 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; @@ -35,10 +36,10 @@ toString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/withfragment.xml b/reference/uri/uri/rfc3986/uri/withfragment.xml index 287bcf812b77..b0345bb362df 100644 --- a/reference/uri/uri/rfc3986/uri/withfragment.xml +++ b/reference/uri/uri/rfc3986/uri/withfragment.xml @@ -48,11 +48,12 @@ <methodname>Uri\Rfc3986\Uri::withFragment</methodname> basic example 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..ed65edc96713 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,7 @@ uri - A valid URL string to parse (e.g. /foo or (e.g. https://example.com/foo). + A valid URL string to parse (e.g. /foo or https://example.com/foo). diff --git a/reference/uri/uri/whatwg/url/getasciihost.xml b/reference/uri/uri/whatwg/url/getasciihost.xml index 0f239f583868..0b4cbf6275bd 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 4c3dd96ba909..58977965c42b 100644 --- a/reference/uri/uri/whatwg/url/parse.xml +++ b/reference/uri/uri/whatwg/url/parse.xml @@ -25,7 +25,7 @@ uri - A valid URL string to parse (e.g. /foo or (e.g. https://example.com/foo). + A valid URL string to parse (e.g. /foo or https://example.com/foo). @@ -66,14 +66,14 @@ toAsciiString(); } else { - echo "Invalid URL" + echo "Invalid URL"; } -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/toasciistring.xml b/reference/uri/uri/whatwg/url/toasciistring.xml index f53c6f5b2016..1556c46156d6 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..8e6c0d86cbe6 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.