cvs: pear /File File.php
| From: | Michael Wallner | Date: | Thu, 21 Jul 2005 07:53:11 +0000 |
| Subject: | cvs: pear /File File.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33192@lists.php.net to get a copy of this message | ||
mike Thu Jul 21 03:53:11 2005 EDT
Modified files:
/pear/File File.php
Log:
- fix bug #4835 (File::readLine can cause memory exhaustion)
by defining FILE_MAX_LINE_READSIZE to 40k instead of 8M
http://cvs.php.net/diff.php/pear/File/File.php?r1=1.30&r2=1.31&ty=u
Index: pear/File/File.php
diff -u pear/File/File.php:1.30 pear/File/File.php:1.31
--- pear/File/File.php:1.30 Mon May 2 06:22:04 2005
+++ pear/File/File.php Thu Jul 21 03:53:09 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.30 2005/05/02 10:22:04 mike Exp $
+ * @version CVS: $Id: File.php,v 1.31 2005/07/21 07:53:09 mike Exp $
* @link http://pear.php.net/package/File
*/
@@ -39,7 +39,7 @@
* The maximum number of bytes for reading lines
*/
if (!defined('FILE_MAX_LINE_READSIZE')) {
- define('FILE_MAX_LINE_READSIZE', 8192000, true);
+ define('FILE_MAX_LINE_READSIZE', 40960, true);
}
/**