|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11731 PHP_URL_FOPEN only doesn't work
Submitted: 2001-06-27 05:56 UTC Modified: 2001-07-22 05:53 UTC
From: brian at fraval dot org Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-06-27 05:56 UTC] brian at fraval dot org
$url = "";
$link = fopen("http://$url", "r");
echo "Link ($url): $link<BR>";

$url2 = "";
$link2 = fopen("http://$url2", "r");
echo "Link2 ($url2): $link2<BR>";

Link (  ($link is empty)
Link2 ( ($link2 is empty)

PHP Version 4.0.6RC3


'../configure' '--prefix=/usr' 
'--disable-rpath' '--with-layout=GNU'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 13:26 UTC]
Your example script works just fine for me.
Which linux distribution is this? RH? Suse?
Do you get any error messages into logs?

 [2001-07-02 07:10 UTC] brian at fraval dot org
oh sorry I'am a error with my message, test this code :

$url = "";
$link = fopen("http://$url", "r");
echo "Link ($url): $link<BR>";

$url2 = "";
$link2 = fopen("http://$url2", "r");
echo "Link2 ($url2): $link2<BR>";

And link2 is only empty... 
 [2001-07-21 21:10 UTC]
I have reproduced this bug in the exact form as he described
it.  Somebody needs to fix this one.
 [2001-07-21 21:10 UTC]
 [2001-07-22 05:53 UTC]
Fixed in CVS. Problem is that there's no trailing /
which results in "GET  HTTP/1.0". This is okay
with yahoo's webserver for some reason. If you want
to try the latest snapshot, see

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Sep 24 15:01:23 2020 UTC