From b4ceb970a7698a8290c4b4ff72dcd6ccad484d83 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sun, 10 Jan 2010 23:38:48 +0000 Subject: [PATCH] Fixed bug #43782 (feof() does not detect timeout on socket) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293364 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/feof.xml | 30 +++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/reference/filesystem/functions/feof.xml b/reference/filesystem/functions/feof.xml index 9088787fd9..cb5f0fae64 100644 --- a/reference/filesystem/functions/feof.xml +++ b/reference/filesystem/functions/feof.xml @@ -44,10 +44,32 @@ If a connection opened by fsockopen wasn't closed - by the server, feof will wait until a timeout has - been reached to return &true;. The default timeout value is 60 seconds. - You may use stream_set_timeout to change this - value. + by the server, feof will hang. To workaround this, see + below example: + + Handling timeouts with <function>feof</function> + + +]]> + +