'ApiQueryCategoryInfo' => 'includes/api/ApiQueryCategoryInfo.php',
'ApiQueryCategoryMembers' => 'includes/api/ApiQueryCategoryMembers.php',
'ApiQueryContributions' => 'includes/api/ApiQueryUserContributions.php',
+ 'ApiQueryContributors' => 'includes/api/ApiQueryContributors.php',
'ApiQueryDeletedrevs' => 'includes/api/ApiQueryDeletedrevs.php',
'ApiQueryDisabled' => 'includes/api/ApiQueryDisabled.php',
'ApiQueryDuplicateFiles' => 'includes/api/ApiQueryDuplicateFiles.php',
'CSSJanus_Tokenizer' => 'includes/libs/CSSJanus.php',
'CSSMin' => 'includes/libs/CSSMin.php',
'GenericArrayObject' => 'includes/libs/GenericArrayObject.php',
+ 'HashRing' => 'includes/libs/HashRing.php',
'HttpStatus' => 'includes/libs/HttpStatus.php',
'IEContentAnalyzer' => 'includes/libs/IEContentAnalyzer.php',
'IEUrlExtension' => 'includes/libs/IEUrlExtension.php',
+ 'MappedIterator' => 'includes/libs/MappedIterator.php',
'JavaScriptMinifier' => 'includes/libs/JavaScriptMinifier.php',
'JSCompilerContext' => 'includes/libs/jsminplus.php',
'JSMinPlus' => 'includes/libs/jsminplus.php',
'JSParser' => 'includes/libs/jsminplus.php',
'JSToken' => 'includes/libs/jsminplus.php',
'JSTokenizer' => 'includes/libs/jsminplus.php',
+ 'MultiHttpClient' => 'includes/libs/MultiHttpClient.php',
'MWMessagePack' => 'includes/libs/MWMessagePack.php',
+ 'RunningStat' => 'includes/libs/RunningStat.php',
'ScopedCallback' => 'includes/libs/ScopedCallback.php',
'ScopedPHPTimeout' => 'includes/libs/ScopedPHPTimeout.php',
'XmlTypeCheck' => 'includes/libs/XmlTypeCheck.php',
# includes/profiler
'Profiler' => 'includes/profiler/Profiler.php',
+ 'ProfilerMwprof' => 'includes/profiler/ProfilerMwprof.php',
'ProfilerSimple' => 'includes/profiler/ProfilerSimple.php',
'ProfilerSimpleText' => 'includes/profiler/ProfilerSimpleText.php',
'ProfilerSimpleTrace' => 'includes/profiler/ProfilerSimpleTrace.php',
'ProfilerSimpleUDP' => 'includes/profiler/ProfilerSimpleUDP.php',
'ProfilerStub' => 'includes/profiler/ProfilerStub.php',
'ProfileSection' => 'includes/profiler/Profiler.php',
- 'RunningStat' => 'includes/profiler/RunningStat.php',
# includes/rcfeed
'RCFeedEngine' => 'includes/rcfeed/RCFeedEngine.php',
'ConfEditorToken' => 'includes/utils/ConfEditor.php',
'DoubleReplacer' => 'includes/utils/StringUtils.php',
'ExplodeIterator' => 'includes/utils/StringUtils.php',
- 'HashRing' => 'includes/utils/HashRing.php',
'HashtableReplacer' => 'includes/utils/StringUtils.php',
'IP' => 'includes/utils/IP.php',
'MWCryptRand' => 'includes/utils/MWCryptRand.php',
'MWFunction' => 'includes/utils/MWFunction.php',
- 'MappedIterator' => 'includes/utils/MappedIterator.php',
'RegexlikeReplacer' => 'includes/utils/StringUtils.php',
'ReplacementArray' => 'includes/utils/StringUtils.php',
'Replacer' => 'includes/utils/StringUtils.php',
* autoload - take a class name and attempt to load it
*
* @param string $className name of class we're looking for.
- * @return bool Returning false is important on failure as
- * it allows Zend to try and look in other registered autoloaders
- * as well.
*/
static function autoload( $className ) {
global $wgAutoloadClasses, $wgAutoloadLocalClasses,
}
# Give up
- return false;
+ return;
+ }
+
+ if ( substr( $filename, 0, 6 ) === 'alias:' ) {
+ // Supported alias formats:
+ // - No deprecation warning: alias:MyNewClassName
+ // - Deprecated in MediaWiki 1.1: alias:MyNewClassName?v=1.1
+ // - Deprecated in MyExtension 1.1: alias:MyNewClassName?c=MyExtension&v=1.1
+ $parts = explode( '?', substr( $filename, 6 ), 2 );
+ $newClassName = $parts[0];
+
+ // If necessary, this will make a recursive call to this function to
+ // load the class using its actual, canonical name.
+ class_alias( $newClassName, $className );
+
+ if ( isset( $parts[1] ) && function_exists( 'wfDeprecated' ) ) {
+ $info = wfCgiToArray( $parts[1] );
+ $function = "name $className for class $newClassName";
+ $version = isset( $info['v'] ) ? $info['v'] : false;
+ $component = isset( $info['c'] ) ? $info['c'] : false;
+
+ // https://github.com/facebook/hhvm/issues/1018
+ $callerOffset = wfIsHHVM() ? 2 : 3;
+ wfDeprecated( $function, $version, $component, $callerOffset );
+ }
+
+ return;
}
# Make an absolute path, this improves performance by avoiding some stat calls
}
require $filename;
-
- return true;
}
/**