#36351 [NEW]: parse_url does not parse path correctly.
| From: | adam at nojszewski dot com | Date: | Fri, 10 Feb 2006 13:09:27 +0000 |
| Subject: | #36351 [NEW]: parse_url does not parse path correctly. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-93104@lists.php.net to get a copy of this message | ||
From: adam at nojszewski dot com
Operating system:
PHP version: 5.1.2
PHP Bug Type: URL related
Bug description: parse_url does not parse path correctly.
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
)
--
Edit bug report at http://bugs.php.net/?id=36351&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36351&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36351&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36351&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36351&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36351&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36351&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36351&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36351&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36351&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36351&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36351&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36351&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36351&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36351&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36351&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36351&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36351&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36351&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36351&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36351&r=mysqlcfg