|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15235 file("http://[...]") never times out
Submitted: 2002-01-26 16:44 UTC Modified: 2002-08-14 14:45 UTC
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: joyoflinux at yahoo dot com Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.1.1 OS: RH Linux 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: joyoflinux at yahoo dot com
New email:
PHP Version: OS:


 [2002-01-26 16:44 UTC] joyoflinux at yahoo dot com
When using the file function on an http document that is down (for example today 1/26 was 
down)  I had a page to go and get the news from  When was down, the 
page never loaded, it hung.  I know I can use socket_set_timeout or something like that, but this doesn't 
effect the file() function.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-13 19:17 UTC]
I'm not familiar with the code behind the file() function myself, but would you mind trying this with a more recent version of PHP?

If the bug was fixed by someone else somewhere along the way, there's no need to try and fix it again.

 [2002-08-14 14:45 UTC]
This bug has been fixed in CVS. Snapshots of the CVS tree are packaged
every three hours; this change will be in the next snapshot. You can grab
the snapshot at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Dec 05 12:01:22 2020 UTC