Bug #12706: parse_url misbehaves
| From: | php dot net dot josef at lushnet dot com | Date: | Sun, 12 Aug 2001 11:47:06 +0000 |
| Subject: | Bug #12706: parse_url misbehaves | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-62970@lists.php.net to get a copy of this message | ||
From: php.net.josef@lushnet.com
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: *URL Functions
Bug description: parse_url misbehaves
It seems that parse_url returns an empty host when the scheme is missing:
$url = parse_url("http://www.lalala.com"); print
$url["host"];
-> outputs "www.lalala.com"
$url = parse_url("www.lalala.com"); print $url["host"];
-> outputs ""
I tried to reproduce the bug on windows2k, but there it worked just like it
should. It could of course also be that I'm a complete idiot since I've
only been using PHP for a few days, but the result seems to be
persistant.
--
Edit bug report at: http://bugs.php.net/?id=12706&edit=1