php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7894 fopen won't open an URL
Submitted: 2000-11-20 13:47 UTC Modified: 2001-04-10 09:35 UTC
From: joaquin at mondongo dot com dot ar Assigned: venaas (profile)
Status: Closed Package: Filesystem function related
PHP Version: 4.0.3pl1 OS: Linux 2.2.14-12.10RS
Private report: No CVE-ID: None
 [2000-11-20 13:47 UTC] joaquin at mondongo dot com dot ar
<?
fopen("http://www.yahoo.com/","r");
?>

This simple "fopen" works on one machine that has 4.0.1pl3, but in this machine with 4.0.3pl1 I get this error:

Bad file descriptor


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-07 14:29 UTC] venaas@php.net
The reason might be that fopen()  doesn't handle redirects. I hope
to add redirect support again though. To check if this is the reason,
check the contents of $http_response_header right after the
fopen() call and see if it contains a redirect.
 [2001-03-08 20:30 UTC] sniper@php.net
Please try the latest CVS snapshot from http://snaps.php.net/

--Jani

 [2001-04-10 09:35 UTC] sniper@php.net
No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC