|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-10 14:48 UTC] adam at nojszewski dot com
[2006-02-10 15:19 UTC] tony2001@php.net
[2006-02-12 17:41 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
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 )