From 6bd9d1c2069825c8900fc5e029ecb88046c797d4 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 11 Dec 2003 14:49:29 +0000 Subject: [PATCH] fixed #21485 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146218 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/feof.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/reference/filesystem/functions/feof.xml b/reference/filesystem/functions/feof.xml index fb1dbfdcd8..6fddda0054 100644 --- a/reference/filesystem/functions/feof.xml +++ b/reference/filesystem/functions/feof.xml @@ -1,5 +1,5 @@ - + @@ -13,9 +13,18 @@ resourcehandle - Returns &true; if the file pointer is at EOF or an error occurs; - otherwise returns &false;. + Returns &true; if the file pointer is at EOF or an error occurs + (including socket timeout); otherwise returns &false;. + + + feof will return &true; only if the connection opened by + fsockopen is closed. This can cause a script to + timeout. The workaround for this is to use + stream_set_timeout, so that feof will return &false; + on timeout. + + The file pointer must be valid, and must point to a file successfully opened by fopen,