-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Expand file tree
/
Copy path003.phpt
More file actions
91 lines (88 loc) · 1.49 KB
/
Copy path003.phpt
File metadata and controls
91 lines (88 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
--TEST--
Parse special URIs
--EXTENSIONS--
uri
--FILE--
<?php
var_dump(Uri\Rfc3986\Uri::parse("http://username:password@héééostname:9090/gah/../path?arg=vaéue#anchor"));
var_dump(Uri\WhatWg\Url::parse("http://username:password@héééostname:9090/gah/../path?arg=vaéue#anchor"));
var_dump(Uri\Rfc3986\Uri::parse("//host123/"));
var_dump(Uri\Rfc3986\Uri::parse("///foo/"));
var_dump(Uri\Rfc3986\Uri::parse("/page:1"));
var_dump(Uri\WhatWg\Url::parse("/page:1"));
?>
--EXPECTF--
NULL
object(Uri\WhatWg\Url)#%d (%d) {
["scheme"]=>
string(4) "http"
["username"]=>
string(8) "username"
["password"]=>
string(8) "password"
["host"]=>
string(18) "xn--hostname-b1aaa"
["port"]=>
int(9090)
["path"]=>
string(5) "/path"
["query"]=>
string(14) "arg=va%C3%A9ue"
["fragment"]=>
string(6) "anchor"
}
object(Uri\Rfc3986\Uri)#%d (%d) {
["scheme"]=>
NULL
["username"]=>
NULL
["password"]=>
NULL
["host"]=>
string(7) "host123"
["port"]=>
NULL
["path"]=>
string(1) "/"
["query"]=>
NULL
["fragment"]=>
NULL
}
object(Uri\Rfc3986\Uri)#%d (%d) {
["scheme"]=>
NULL
["username"]=>
NULL
["password"]=>
NULL
["host"]=>
string(0) ""
["port"]=>
NULL
["path"]=>
string(5) "/foo/"
["query"]=>
NULL
["fragment"]=>
NULL
}
object(Uri\Rfc3986\Uri)#%d (%d) {
["scheme"]=>
NULL
["username"]=>
NULL
["password"]=>
NULL
["host"]=>
NULL
["port"]=>
NULL
["path"]=>
string(7) "/page:1"
["query"]=>
NULL
["fragment"]=>
NULL
}
NULL