From: Markus Glaser Date: Fri, 13 May 2011 17:24:43 +0000 (+0000) Subject: removed max line size for a sql dump file. This optional since PHP 4.2.0. Larger... X-Git-Tag: 1.31.0-rc.0~30237 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=2e2f07235dda289cb764059f2da7734b78e2f3b3;p=lhc%2Fweb%2Fwiklou.git removed max line size for a sql dump file. This optional since PHP 4.2.0. Larger lines are needed when importing test databases in selenium framework. This change was discussed on wikitech-l on 03.Feb.2011. --- diff --git a/includes/db/Database.php b/includes/db/Database.php index 42b649bf07..921f121196 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -2533,7 +2533,7 @@ abstract class DatabaseBase implements DatabaseType { call_user_func( $lineCallback ); } - $line = trim( fgets( $fp, 1024 ) ); + $line = trim( fgets( $fp ) ); $sl = strlen( $line ) - 1; if ( $sl < 0 ) {