Date: 08/12/01
- Next message: Stig Sæther Bakken: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/sablot php_sablot.h"
- Previous message: patrick <email protected>: "[PHP-DEV] Bug #12705: persistent connections don't go away when the database server dies"
- Next in thread: jeroen <email protected>: "[PHP-DEV] Bug #12706 Updated: parse_url misbehaves"
- Reply: jeroen <email protected>: "[PHP-DEV] Bug #12706 Updated: parse_url misbehaves"
- Reply: jeroen <email protected>: "[PHP-DEV] Bug #12706 Updated: parse_url misbehaves"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Stig Sæther Bakken: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/sablot php_sablot.h"
- Previous message: patrick <email protected>: "[PHP-DEV] Bug #12705: persistent connections don't go away when the database server dies"
- Next in thread: jeroen <email protected>: "[PHP-DEV] Bug #12706 Updated: parse_url misbehaves"
- Reply: jeroen <email protected>: "[PHP-DEV] Bug #12706 Updated: parse_url misbehaves"
- Reply: jeroen <email protected>: "[PHP-DEV] Bug #12706 Updated: parse_url misbehaves"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

