From 3a32f51b11afe215832b176247552fc5e9127f1e Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Fri, 31 May 2002 18:49:47 +0000 Subject: [PATCH] fread already detects EOF --- pear/System.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pear/System.php b/pear/System.php index 3fd25e082f..47367e5441 100644 --- a/pear/System.php +++ b/pear/System.php @@ -292,8 +292,7 @@ class System System::raiseError("Could not open $file"); continue; } - while(!feof($fd)) { - $cont = fread($fd, 2048); + while ($cont = fread($fd, 2048)) { if (isset($outputfd)) { fwrite($outputfd, $cont); } else { -- 2.50.1