[PHP-DEV] Bug #12706: parse_url misbehaves From: php.net.josef <email protected>
Date: 08/12/01

From: php.net.josef <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>