diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-09-28 14:52:31 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-09-28 14:52:31 +0000 |
commit | e919a873cd49c4a7fe938528cea5fc782ee4fb9b (patch) | |
tree | 9ee3147b92d579bad269c7e94b5078648f40891c /ext/standard/tests/strings | |
parent | c0326fb1cec2f6badee7391d66951fba57b62371 (diff) | |
download | php-git-e919a873cd49c4a7fe938528cea5fc782ee4fb9b.tar.gz |
Fixed bug #38859 (parse_url() fails if passing '@' in passwd).
Diffstat (limited to 'ext/standard/tests/strings')
-rw-r--r-- | ext/standard/tests/strings/url_t.phpt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/ext/standard/tests/strings/url_t.phpt b/ext/standard/tests/strings/url_t.phpt index 2d18fa5c03..e0e5411036 100644 --- a/ext/standard/tests/strings/url_t.phpt +++ b/ext/standard/tests/strings/url_t.phpt @@ -71,6 +71,7 @@ $sample_urls = array ( 'scheme:', 'foo+bar://baz@bang/bla', 'gg:9130731', +'http://user:@pass@host/path?argument?value#etc', ); foreach ($sample_urls as $url) { @@ -525,11 +526,11 @@ array(7) { ["scheme"]=> string(4) "http" ["host"]=> - string(19) "hideout@www.php.net" + string(11) "www.php.net" ["port"]=> int(80) ["user"]=> - string(6) "secret" + string(14) "secret@hideout" ["path"]=> string(10) "/index.php" ["query"]=> @@ -685,6 +686,22 @@ array(2) { ["path"]=> string(7) "9130731" } +array(7) { + ["scheme"]=> + string(4) "http" + ["host"]=> + string(4) "host" + ["user"]=> + string(4) "user" + ["pass"]=> + string(5) "@pass" + ["path"]=> + string(5) "/path" + ["query"]=> + string(14) "argument?value" + ["fragment"]=> + string(3) "etc" +} string(4) "http" string(11) "www.php.net" int(80) |