55--FILE--
66<?php
77
8- $ uri1 = new Uri \Rfc3986 \Uri ("https://username:password@www.google.com :8080/pathname1/pathname2/pathname3?query=true#hash-exists " );
8+ $ uri1 = new Uri \Rfc3986 \Uri ("https://username:password@www.php.net :8080/pathname1/pathname2/pathname3?query=true#hash-exists " );
99$ serializedUri1 = serialize ($ uri1 );
1010$ uri2 = unserialize ($ serializedUri1 );
1111
6060 echo $ e ->getMessage () . "\n" ;
6161}
6262
63- $ url1 = new Uri \WhatWg \Url ("https://username:password@www.google.com :8080/pathname1/pathname2/pathname3?query=true#hash-exists " );
63+ $ url1 = new Uri \WhatWg \Url ("https://username:password@www.php.net :8080/pathname1/pathname2/pathname3?query=true#hash-exists " );
6464$ serializedUrl1 = serialize ($ url1 );
6565$ url2 = unserialize ($ serializedUrl1 );
6666
@@ -123,7 +123,7 @@ try {
123123
124124?>
125125--EXPECTF--
126- string(163) "O:15:"Uri\Rfc3986\Uri":2:{i:0;a:1:{s:3:"uri";s:98:"https://username:password@www.google.com :8080/pathname1/pathname2/pathname3?query=true#hash-exists";}i:1;a:0:{}}"
126+ string(163) "O:15:"Uri\Rfc3986\Uri":2:{i:0;a:1:{s:3:"uri";s:98:"https://username:password@www.php.net :8080/pathname1/pathname2/pathname3?query=true#hash-exists";}i:1;a:0:{}}"
127127object(Uri\Rfc3986\Uri)#%d (%d) {
128128 ["scheme"]=>
129129 string(5) "https"
@@ -132,7 +132,7 @@ object(Uri\Rfc3986\Uri)#%d (%d) {
132132 ["password"]=>
133133 string(8) "password"
134134 ["host"]=>
135- string(14) "www.google.com "
135+ string(14) "www.php.net "
136136 ["port"]=>
137137 int(8080)
138138 ["path"]=>
@@ -150,7 +150,7 @@ Invalid serialization data for Uri\Rfc3986\Uri object
150150Invalid serialization data for Uri\Rfc3986\Uri object
151151Invalid serialization data for Uri\Rfc3986\Uri object
152152Invalid serialization data for Uri\Rfc3986\Uri object
153- string(162) "O:14:"Uri\WhatWg\Url":2:{i:0;a:1:{s:3:"uri";s:98:"https://username:password@www.google.com :8080/pathname1/pathname2/pathname3?query=true#hash-exists";}i:1;a:0:{}}"
153+ string(162) "O:14:"Uri\WhatWg\Url":2:{i:0;a:1:{s:3:"uri";s:98:"https://username:password@www.php.net :8080/pathname1/pathname2/pathname3?query=true#hash-exists";}i:1;a:0:{}}"
154154object(Uri\WhatWg\Url)#%d (%d) {
155155 ["scheme"]=>
156156 string(5) "https"
@@ -159,7 +159,7 @@ object(Uri\WhatWg\Url)#%d (%d) {
159159 ["password"]=>
160160 string(8) "password"
161161 ["host"]=>
162- string(14) "www.google.com "
162+ string(14) "www.php.net "
163163 ["port"]=>
164164 int(8080)
165165 ["path"]=>
0 commit comments