cvs: php4 /pear System.php
| From: | Tomas V.V.Cox | Date: | Fri, 31 May 2002 18:49:47 +0000 |
| Subject: | cvs: php4 /pear System.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4326@lists.php.net to get a copy of this message | ||
cox Fri May 31 14:49:47 2002 EDT
Modified files:
/php4/pear System.php
Log:
fread already detects EOF
Index: php4/pear/System.php
diff -u php4/pear/System.php:1.13 php4/pear/System.php:1.14
--- php4/pear/System.php:1.13 Fri May 31 14:12:56 2002
+++ php4/pear/System.php Fri May 31 14:49:47 2002
@@ -16,7 +16,7 @@
// | Authors: Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: System.php,v 1.13 2002/05/31 18:12:56 cox Exp $
+// $Id: System.php,v 1.14 2002/05/31 18:49:47 cox Exp $
//
require_once 'PEAR.php';
@@ -43,7 +43,7 @@
*
* @package System
* @author Tomas V.V.Cox <cox@idecnet.com>
-* @version $Revision: 1.13 $
+* @version $Revision: 1.14 $
* @access public
* @see http://pear.php.net/manual/
*/
@@ -292,8 +292,7 @@
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 {