#31718 [Bgs]: parse_url: http:///foo.com/bar?joe=1 not recognized

From: Date: Thu, 27 Jan 2005 11:21:25 +0000
Subject: #31718 [Bgs]: parse_url: http:///foo.com/bar?joe=1 not recognized
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72926@lists.php.net to get a copy of this message
ID: 31718 User updated by: cox at idecnet dot com Reported By: cox at idecnet dot com Status: Bogus Bug Type: URL related Operating System: Linux PHP Version: 4.3.10 New Comment: Sorry I wanted to say "valid for web browsers". Mozilla does recognize the 'http:///foo.com' format, even something like 'http:////////foo.com', IE doesn't btw. Previous Comments: ------------------------------------------------------------------------ [2005-01-27 11:56:24] tony2001@php.net Since when "http:///foo.com" is valid URL ? No bug here. ------------------------------------------------------------------------ [2005-01-27 11:55:48] derick@php.net there are 3 /'s after http: ... that is obviously wrong. ------------------------------------------------------------------------ [2005-01-27 11:49:17] cox at idecnet dot com Description: ------------ The valid url format: http:///foo.com/bar?joe=1 is not recognized. Tomas V.V.Cox Reproduce code: --------------- php -r 'print_r(parse_url("http:///foo.com/bar?joe=1"));' Expected result: ---------------- Array with the correct parts Actual result: -------------- Warning: parse_url(http:///foo.com/bar?joe=1): Unable to parse url in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31718&edit=1

« previous php.bugs (#72926) next »