X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FHistoryBlob.php;h=14d22ec404a825d68442a0a7fefc8e302ccfdc14;hb=cd43f3f6d6978a0c25eab96439a8d9967034ad35;hp=56cf815e457f6af855a8a672c6473ab9f7c5b2c3;hpb=f17a70e253c24f5ceee072de10b7ef0b5b5e228a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 56cf815e45..14d22ec404 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -76,9 +76,6 @@ class ConcatenatedGzipHistoryBlob implements HistoryBlob { public $mMaxSize = 10000000; public $mMaxCount = 100; - /** - * Constructor - */ public function __construct() { if ( !function_exists( 'gzdeflate' ) ) { throw new MWException( "Need zlib support to read or write this " @@ -702,3 +699,16 @@ class DiffHistoryBlob implements HistoryBlob { } } + +// @codingStandardsIgnoreStart +if ( false ) { + // Blobs generated by MediaWiki < 1.5 on PHP 4 were serialized with the + // class name coerced to lowercase. We can improve efficiency by adding + // autoload entries for the lowercase variants of these classes (T166759). + // The code below is never executed, but it is picked up by the AutoloadGenerator + // parser, which scans for class_alias() calls. + class_alias( 'ConcatenatedGzipHistoryBlob', 'concatenatedgziphistoryblob' ); + class_alias( 'HistoryBlobCurStub', 'historyblobcurstub' ); + class_alias( 'HistoryBlobStub', 'historyblobstub' ); +} +// @codingStandardsIgnoreEnd