Add lowercase variants to the autoloader for legacy history blob classes
authorOri Livneh <ori.livneh@gmail.com>
Sat, 14 Oct 2017 20:57:38 +0000 (16:57 -0400)
committerKrinkle <krinklemail@gmail.com>
Mon, 16 Oct 2017 13:56:35 +0000 (13:56 +0000)
commit692cf27013e8f0e5c0f452978211269d15fb284f
treeed372cb1086a5f9be3e098b91185b6904a49f03e
parent96a512667a37224e4d53358f25bf521791539c19
Add lowercase variants to the autoloader for legacy history blob classes

Blobs in the text table created by MediaWiki <1.5 running on PHP 4 had class
names coerced to lowercase. In order to succcessfully resolve these class
names, the autoloader creates a copy of the autoload class array with
lowercased keys, which is pretty inefficient. So instead, make sure the
auto-generated autoload map contains lowercase variants for these specific
classes.

Bug: T166759
Change-Id: I6d751ef516e936e04c056d70a1ecd17960a39ceb
autoload.php
includes/HistoryBlob.php