cvs: pear /File File.php
| From: | Michael Wallner | Date: | Fri, 30 Sep 2005 10:49:27 +0000 |
| Subject: | cvs: pear /File File.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35166@lists.php.net to get a copy of this message | ||
mike Fri Sep 30 06:49:27 2005 EDT
Modified files:
/pear/File File.php
Log:
- fix Bug #5464 fwrite returns false but file checks for -1
http://cvs.php.net/diff.php/pear/File/File.php?r1=1.33&r2=1.34&ty=u
Index: pear/File/File.php
diff -u pear/File/File.php:1.33 pear/File/File.php:1.34
--- pear/File/File.php:1.33 Fri Sep 30 06:47:08 2005
+++ pear/File/File.php Fri Sep 30 06:49:26 2005
@@ -19,7 +19,7 @@
* @author Michael Wallner <mike@php.net>
* @copyright 2002-2005 The Authors
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: File.php,v 1.33 2005/09/30 10:47:08 mike Exp $
+ * @version CVS: $Id: File.php,v 1.34 2005/09/30 10:49:26 mike Exp $
* @link http://pear.php.net/package/File
*/
@@ -258,7 +258,7 @@
return $fp;
}
- if (-1 === $bytes = @fwrite($fp, $data, strlen($data))) {
+ if (false === $bytes = @fwrite($fp, $data, strlen($data))) {
return PEAR::raiseError("Cannot write data: '$data' to file:
'$filename'");
}