diff options
author | Tomas V.V.Cox <cox@php.net> | 2002-05-31 18:49:47 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2002-05-31 18:49:47 +0000 |
commit | 3a32f51b11afe215832b176247552fc5e9127f1e (patch) | |
tree | 34cad85a51a81cd8d1f5ae78303216d9b73a5d4e /pear/System.php | |
parent | 5d43ef2cd0780b42f4a675d37b26f9080624372e (diff) | |
download | php-git-3a32f51b11afe215832b176247552fc5e9127f1e.tar.gz |
fread already detects EOF
Diffstat (limited to 'pear/System.php')
-rw-r--r-- | pear/System.php | 3 |
1 files changed, 1 insertions, 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 { |