php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40430 timeout parameter for function file()
Submitted: 2007-02-10 13:21 UTC Modified: 2007-02-10 13:24 UTC
From: krid@php.net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.4.4 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: krid@php.net
New email:
PHP Version: OS:

 

 [2007-02-10 13:21 UTC] krid@php.net
Description:
------------
When you use file() to get a file over a network (internet) like
file("http://www.php.net");
you will get an timeout error if there is no connection to the internet or the requested URL. There I suggest to add an additional (optional) attribute
"int timeout"
to this function, making php cancel the function call after x seconds.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-10 13:24 UTC] bjori@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

There already is a timeout http context option in 5.2.1
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 07 23:00:02 2025 UTC