summaryrefslogtreecommitdiff
path: root/pear/System.php
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-05-31 18:49:47 +0000
committerTomas V.V.Cox <cox@php.net>2002-05-31 18:49:47 +0000
commit3a32f51b11afe215832b176247552fc5e9127f1e (patch)
tree34cad85a51a81cd8d1f5ae78303216d9b73a5d4e /pear/System.php
parent5d43ef2cd0780b42f4a675d37b26f9080624372e (diff)
downloadphp-git-3a32f51b11afe215832b176247552fc5e9127f1e.tar.gz
fread already detects EOF
Diffstat (limited to 'pear/System.php')
-rw-r--r--pear/System.php3
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 {