php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10110 Problem with fopen() - Bad file descriptor
Submitted: 2001-04-02 07:26 UTC Modified: 2001-04-02 18:28 UTC
From: senser at email dot si Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
 [2001-04-02 07:26 UTC] senser at email dot si
I have used and tested a script on linux machine with an apache webserver and php4 installed, i got error of a bad file desctiptor in the fopen statement:

The code i used is: 

$page="http://www.feri.uni-mb.si/"; 
$fp=fopen($page,"r") or die("Error"); 

when the url was http://www.senser.f2s.com/welcome.html" 
(my website)
everthing worked fine!

Ales!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-02 18:28 UTC] sniper@php.net
This should be fixed in CVS. Try latest CVS snapshot from
http://snaps.php.net/

Reopen this bug report if problem still exists with latest CVS snapshot.

(I tried your script and it worked just fine)

--Jani

 [2003-03-05 09:33 UTC] ottawasixtyseven at hotmail dot com
Note: This bug still exists in ALL versions of PHP right up to 4.3.1 and the snapshots.

Ottawa
 [2003-03-13 16:35 UTC] ottawasixtyseven at hotmail dot com
Fixed in latest snapshot. Thank you.

Ottawa
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Oct 19 03:01:27 2019 UTC