62 'host' =>
'example.org',
70 'host' =>
'example.org',
74 'https://example.org',
78 'host' =>
'example.org',
82 'http://id:key@example.org:123/path?foo=bar#baz',
88 'host' =>
'example.org',
96 'file://example.org/etc/php.ini',
100 'host' =>
'example.org',
101 'path' =>
'/etc/php.ini',
105 'file:///etc/php.ini',
108 'delimiter' =>
'://',
110 'path' =>
'/etc/php.ini',
117 'delimiter' =>
'://',
123 'mailto:id@example.org',
125 'scheme' =>
'mailto',
127 'host' =>
'id@example.org',
132 'mailto:id@example.org?subject=Foo',
134 'scheme' =>
'mailto',
136 'host' =>
'id@example.org',
138 'query' =>
'subject=Foo',
142 'mailto:?subject=Foo',
144 'scheme' =>
'mailto',
148 'query' =>
'subject=Foo',
157 '//evil.com?example.org/foo/bar',
161 'host' =>
'evil.com',
162 'query' =>
'example.org/foo/bar',
166 '//evil.com?example.org/foo/bar?baz#quux',
170 'host' =>
'evil.com',
171 'query' =>
'example.org/foo/bar?baz',
172 'fragment' =>
'quux',
176 '//evil.com?example.org?baz#quux',
180 'host' =>
'evil.com',
181 'query' =>
'example.org?baz',
182 'fragment' =>
'quux',
186 '//evil.com?example.org#quux',
190 'host' =>
'evil.com',
191 'query' =>
'example.org',
192 'fragment' =>
'quux',
wfParseUrl( $url)
parse_url() work-alike, but non-broken.
GlobalFunctions wfParseUrl.
static provideURLs()
Provider of URLs for testing wfParseUrl()
testWfParseUrl( $url, $parts)
provideURLs
processing should stop and the error should be shown to the user * false