php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31718 parse_url: http:///foo.com/bar?joe=1 not recognized
Submitted: 2005-01-27 11:49 UTC Modified: 2005-01-27 12:21 UTC
From: cox at idecnet dot com Assigned:
Status: Not a bug Package: URL related
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 - 48 = ?
Subscribe to this entry?

 
 [2005-01-27 11:49 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-27 11:55 UTC] derick@php.net
there are 3 /'s after http: ... that is obviously wrong.
 [2005-01-27 11:56 UTC] tony2001@php.net
Since when "http:///foo.com" is valid URL ?
No bug here.
 [2005-01-27 12:21 UTC] cox at idecnet dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC