Skip to content

Commit d2bfb5c

Browse files
committed
ext/uri: restored legacy parsing error cases
1 parent fbf59b9 commit d2bfb5c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

ext/uri/tests/rfc3986/parsing/basic_error_returns_null.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Test Uri\Rfc3986\Uri::parse() returns null for a malformed URI
44
<?php
55

66
var_dump(Uri\Rfc3986\Uri::parse("http://RuPaul's Drag Race All Stars 7 Winners Cast on This Season's"));
7+
var_dump(Uri\Rfc3986\Uri::parse("http://username:password@héééostname:9090/gah/../path?arg=vaéue#anchor"));
78

89
?>
910
--EXPECT--
1011
NULL
12+
NULL

ext/uri/tests/whatwg/parsing/basic_error_returns_null.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ Test Uri\WhatWg\Url::parse() returns null for malformed URLs
66
var_dump(Uri\WhatWg\Url::parse(""));
77
var_dump(Uri\WhatWg\Url::parse("192.168/contact.html", null));
88
var_dump(Uri\WhatWg\Url::parse("http://RuPaul's Drag Race All Stars 7 Winners Cast on This Season's", null));
9+
var_dump(Uri\WhatWg\Url::parse("/page:1"));
910

1011
?>
1112
--EXPECT--
1213
NULL
1314
NULL
1415
NULL
16+
NULL

0 commit comments

Comments
 (0)