You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var_dump(newUri\Rfc3986\Uri("https://example.com#foo")->equals(newUri\Rfc3986\Uri("https://example.com#bar"), true)); // true: fragment differs, but excludeFragment = true
10
-
var_dump(newUri\Rfc3986\Uri("https://example.com#foo")->equals(newUri\Rfc3986\Uri("https://example.com#bar"), false)); // false: fragment differs and excludeFragment = false
9
+
var_dump(newUri\Rfc3986\Uri("https://example.com#foo")->equals(newUri\Rfc3986\Uri("https://example.com#bar"), Uri\UriComparisonMode::ExcludeFragment)); // true: fragment differs, but fragment is excluded
10
+
var_dump(newUri\Rfc3986\Uri("https://example.com#foo")->equals(newUri\Rfc3986\Uri("https://example.com#bar"), Uri\UriComparisonMode::IncludeFragment)); // false: fragment differs and fragment is included
11
11
var_dump(newUri\Rfc3986\Uri("https://example.com/foo/..")->equals(newUri\Rfc3986\Uri("https://example.com"))); // false: first URI becomes https://example.com/ after normalization
12
12
var_dump(newUri\Rfc3986\Uri("https://example.com/foo/..")->equals(newUri\Rfc3986\Uri("https://example.com/"))); // true: both URIs are https://example.com/ after normalization
13
13
var_dump(newUri\Rfc3986\Uri("http://example%2ecom/foo%2fb%61r")->equals(newUri\Rfc3986\Uri("http://example%2ecom/foo/bar"))); // false: "/" in the path should not be decoded
14
14
var_dump(newUri\Rfc3986\Uri("http://example%2ecom/foo/b%61r")->equals(newUri\Rfc3986\Uri("http://example%2ecom/foo/bar"))); // true: percent-decoding during normalization gives same URIs
var_dump(newUri\WhatWg\Url("https://example.com#foo")->equals(newUri\WhatWg\Url("https://example.com#bar"), true)); // true: fragment differs, but excludeFragment = true
18
-
var_dump(newUri\WhatWg\Url("https://example.com#foo")->equals(newUri\WhatWg\Url("https://example.com#bar"), false)); // false: fragment differs and excludeFragment = false
17
+
var_dump(newUri\WhatWg\Url("https://example.com#foo")->equals(newUri\WhatWg\Url("https://example.com#bar"), Uri\UriComparisonMode::ExcludeFragment)); // true: fragment differs, but fragment is excluded
18
+
var_dump(newUri\WhatWg\Url("https://example.com#foo")->equals(newUri\WhatWg\Url("https://example.com#bar"), Uri\UriComparisonMode::IncludeFragment)); // false: fragment differs and fragment is included
19
19
var_dump(newUri\WhatWg\Url("https://example.com/foo/..")->equals(newUri\WhatWg\Url("https://example.com"))); // true: both URIs are https://example.com/ after normalization
20
20
var_dump(newUri\WhatWg\Url("https://example.com/foo/..")->equals(newUri\WhatWg\Url("https://example.com/"))); // true: both URIs are https://example.com/ after normalization
21
21
var_dump(newUri\WhatWg\Url("http://example%2ecom/foo%2fb%61r")->equals(newUri\WhatWg\Url("http://example%2ecom/foo/bar"))); // false: WHATWG doesn't percent-decode the path during normalization
0 commit comments