|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13293 fopen()/readfile()/file() URL cannot handle http://host:port/ syntax
Submitted: 2001-09-13 16:17 UTC Modified: 2001-10-15 17:53 UTC
From: max at corp dot liv4now dot com Assigned:
Status: Closed Package: URL related
PHP Version: 4.0.6 OS: Linux (x86)
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:
Solve the problem:
22 + 24 = ?
Subscribe to this entry?

 [2001-09-13 16:17 UTC] max at corp dot liv4now dot com
This is probably not really bug, just a missing feature.

Basically the fopen()URL handler doesn't allow the specification of an alternativ port within the url such as


I guess it will probably also not handle http://user:pass@host/, so maybe you could add that as well sometime.

the following script:

results in the following output:

X-Powered-By: PHP/4.0.6
Content-type: text/html

<b>Warning</b>:  readfile("http://localhost:8080/") - Success in <b>-</b> on line <b>2</b><br>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-15 17:53 UTC]
I cannot reproduce this with the latest cvs version. Please try and reopen if the problem persists.

It also supports (and it has been doing that for a while) requests of type http://user:pass@host/
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 17 02:03:41 2022 UTC