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
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:
3 + 13 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC