PHP :: Bug #34148 :: parse_url() broken
| Bug #34148 | parse_url() broken | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-08-16 10:52 UTC | Modified: | 2005-08-16 16:20 UTC | ||
| From: | php at benjamin dot schulz dot name | Assigned: | ilia (profile) | ||
| Status: | Closed | Package: | URL related | ||
| PHP Version: | 5.1.0b3 | OS: | linux | ||
| Private report: | No | CVE-ID: | None | ||
[2005-08-16 10:52 UTC] php at benjamin dot schulz dot name
Description:
------------
parse_url doesn't support "special" characters like + or . in the scheme name anymore
Reproduce code:
---------------
<?php
// works
var_dump(parse_url("foobar://baz@bang/bla"))
// doesn't work at all
var_dump(parse_url("foo+bar://baz@bang/bla"));'
?>
Expected result:
----------------
array(4) {
["scheme"]=>
string(6) "foo+bar"
["host"]=>
string(4) "bang"
["user"]=>
string(3) "baz"
["path"]=>
string(4) "/bla"
}
Actual result:
--------------
array(2) {
["host"]=>
string(7) "foo+bar"
["path"]=>
string(14) "//baz@bang/bla"
}
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-08-16 16:20 UTC] iliaa@php.net