From: Tomas V.V.Cox Date: Fri, 31 May 2002 18:49:47 +0000 (+0000) Subject: fread already detects EOF X-Git-Tag: php-4.3.0dev_zend2_alpha1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a32f51b11afe215832b176247552fc5e9127f1e;p=php fread already detects EOF --- 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 {