#40430 [Opn->Csd]: timeout parameter for function file()
| From: | bjori@php.net | Date: | Sat, 10 Feb 2007 13:24:10 +0000 |
| Subject: | #40430 [Opn->Csd]: timeout parameter for function file() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108669@lists.php.net to get a copy of this message | ||
ID: 40430
Updated by: bjori@php.net
Reported By: krid@php.net
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.4.4
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2007-02-10 13:21:12] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40430&edit=1