parse_url does not parse path correctly.
| Bug #36351 | parse_url does not parse path correctly. | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-02-10 14:09 UTC | Modified: | 2006-02-12 17:41 UTC | ||
| From: | adam at nojszewski dot com | Assigned: | iliaa (profile) | ||
| Status: | Closed | Package: | URL related | ||
| PHP Version: | 5.1.2 | OS: | |||
| Private report: | No | CVE-ID: | None | ||
[2006-02-10 14:09 UTC] adam at nojszewski dot com
Description:
------------
parse_url does not parses 'scheme:path' when path consists of numbers only.
skype:anojszewski is parsed right.
gg:9130731 is parsed wrong (whole URL is treated as path).
Tested on versions 5.1.2 and 4.4.2.
Adam Nojszewski
Reproduce code:
---------------
print_r(parse_url("skype:anojszewski"));
print_r(parse_url("gg:9130731"));
Expected result:
----------------
Array
(
[scheme] => skype
[path] => anojszewski
)
Array
(
[scheme] => gg
[path] => 9130731
)
Actual result:
--------------
Array
(
[scheme] => skype
[path] => anojszewski
)
Array
(
[path] => gg:9130731
)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-02-10 14:48 UTC] adam at nojszewski dot com
[2006-02-12 17:41 UTC] iliaa@php.net