39 ini_set(
'display_errors',
'1' );
60 if ( !file_exists(
$logDir ) ) {
64 'debug-cli' =>
'mw-debug-cli',
65 'debug-web' =>
'mw-debug-web',
67 'ratelimit' =>
'mw-ratelimit',
68 'error' =>
'mw-error',
74 $splitGroupLogId = getenv(
'MW_PHPUNIT_SPLIT_GROUP_ID' );
76 foreach ( $logFileNames as $key => $logFileName ) {
77 if ( $splitGroupLogId ) {
78 $logFileNames[$key] =
"$logDir/$logFileName.split-group-$splitGroupLogId.log";
80 $logFileNames[$key] =
"$logDir/$logFileName.log";
108 foreach ( $limit as $group => &$groupLimit ) {
109 $groupLimit[0] = PHP_INT_MAX;
125 [
'count' => 1000,
'seconds' => 300 ],
126 [
'count' => 100000,
'seconds' => 60 * 60 * 48 ],
160$wgSQLMode =
'STRICT_ALL_TABLES,ONLY_FULL_GROUP_BY';
172 DIRECTORY_SEPARATOR .
173 rawurlencode(
MediaWiki\WikiMap\WikiMap::getCurrentWikiId() );
global $wgRestAPIAdditionalRouteFiles
global $wgSQLMode
Experimental changes that may later become the default.
global $wgEnableJavaScriptTest
if(MW_ENTRY_POINT==='index') global $wgShowHostnames
global $wgPasswordAttemptThrottle
$wgTempAccountCreationThrottle
global $wgCiteBookReferencing
global $wgLocalisationCacheConf
global $wgUsePigLatinVariant
global $wgAutoCreateTempUser
if(MW_ENTRY_POINT==='index') global $wgShowExceptionDetails
global $wgDBStrictWarnings
global $wgVisualEditorEnableWikitext
if(MW_ENTRY_POINT==='index') global $wgDebugLogGroups
if(MW_ENTRY_POINT==='index') global $wgDevelopmentWarnings
Debugging for MediaWiki.
if(MW_ENTRY_POINT==='index') global $wgDBerrorLog
if(MW_ENTRY_POINT==='index') global $wgDebugLogFile
global $wgForceDeferredUpdatesPreSend
global $wgParsoidSettings
$wgTempAccountNameAcquisitionThrottle
global $wgDefaultUserOptions
global $wgRateLimits
Make testing possible (or easier)