Browse Source

fread already detects EOF

experimental/new_apache_hooks
Tomas V.V.Cox 24 years ago
parent
commit
3a32f51b11
  1. 3
      pear/System.php

3
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 {

Loading…
Cancel
Save