MediaWiki  master
DevelopmentSettings.php
Go to the documentation of this file.
1 <?php
20 // Enable showing of errors
21 error_reporting( -1 );
22 ini_set( 'display_errors', 1 );
23 
31 
32 // Use of wfWarn() should cause tests to fail
34 
35 // Enable showing of errors
37 $wgShowHostnames = true;
38 $wgDebugRawPage = true; // T49960
39 
40 // Enable log files
41 $logDir = getenv( 'MW_LOG_DIR' );
42 if ( $logDir ) {
43  if ( $wgCommandLineMode ) {
44  $wgDebugLogFile = "$logDir/mw-debug-cli.log";
45  } else {
46  $wgDebugLogFile = "$logDir/mw-debug-www.log";
47  }
48  $wgDBerrorLog = "$logDir/mw-dberror.log";
49  $wgDebugLogGroups['ratelimit'] = "$logDir/mw-ratelimit.log";
50  $wgDebugLogGroups['error'] = "$logDir/mw-error.log";
51  $wgDebugLogGroups['exception'] = "$logDir/mw-error.log";
52 }
53 unset( $logDir );
54 
60 
61 // Disable rate-limiting to allow integration tests to run unthrottled
62 // in CI and for devs locally (T225796)
63 $wgRateLimits = [];
64 
65 // Enable Special:JavaScriptTest and allow `npm run qunit` to work
66 // https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing
68 
69 // Enable development/experimental endpoints
70 $wgRestAPIAdditionalRouteFiles = [ 'includes/Rest/coreDevelopmentRoutes.json' ];
71 
72 // Disable resource limits
77 
78 // Disable resource limits for TimedMediaHandler
82 
89 
90 // Enable MariaDB/MySQL strict mode (T108255)
91 $wgSQLMode = 'TRADITIONAL';
92 
93 // Disable legacy javascript globals in CI and for devs (T72470)
95 
96 // Localisation Cache to StaticArray (T218207)
97 $wgLocalisationCacheConf['store'] = 'array';
98 
99 // Experimental Book Referencing feature (T236255)
102 
103 // The default value is false, but for development it is useful to set this to the system temp
104 // directory by default (T218207)
106  DIRECTORY_SEPARATOR .
107  rawurlencode( WikiMap::getCurrentWikiId() );
$wgTranscodeBackgroundTimeLimit
$wgTranscodeBackgroundTimeLimit
Definition: DevelopmentSettings.php:79
$wgMaxShellFileSize
$wgMaxShellFileSize
Definition: DevelopmentSettings.php:74
$wgDevelopmentWarnings
global $wgDevelopmentWarnings
Debugging for MediaWiki.
Definition: DevelopmentSettings.php:28
$wgDebugRawPage
global $wgDebugRawPage
Definition: DevelopmentSettings.php:29
$wgLegacyJavaScriptGlobals
global $wgLegacyJavaScriptGlobals
Definition: DevelopmentSettings.php:88
$wgDebugLogGroups
global $wgDebugLogGroups
Definition: DevelopmentSettings.php:30
$wgTranscodeBackgroundSizeLimit
$wgTranscodeBackgroundSizeLimit
Definition: DevelopmentSettings.php:81
WikiMap\getCurrentWikiId
static getCurrentWikiId()
Definition: WikiMap.php:303
$wgTranscodeBackgroundMemoryLimit
$wgTranscodeBackgroundMemoryLimit
Definition: DevelopmentSettings.php:80
$wgCommandLineMode
global $wgCommandLineMode
Definition: DevelopmentSettings.php:29
$wgDebugLogFile
global $wgDebugLogFile
Definition: DevelopmentSettings.php:29
$wgCacheDirectory
$wgCacheDirectory
Definition: DevelopmentSettings.php:105
$wgSQLMode
global $wgSQLMode
Experimental changes that may later become the default.
Definition: DevelopmentSettings.php:88
$wgMaxShellTime
$wgMaxShellTime
Definition: DevelopmentSettings.php:75
$wgShowHostnames
global $wgShowHostnames
Definition: DevelopmentSettings.php:28
TempFSFile\getUsableTempDirectory
static getUsableTempDirectory()
Definition: TempFSFile.php:80
$wgDBerrorLog
global $wgDBerrorLog
Definition: DevelopmentSettings.php:30
$logDir
$logDir
Definition: DevelopmentSettings.php:41
$wgCiteBookReferencing
global $wgCiteBookReferencing
Definition: DevelopmentSettings.php:100
$wgShowExceptionDetails
global $wgShowExceptionDetails
Definition: DevelopmentSettings.php:28
$wgRateLimits
global $wgRateLimits
Make testing possible (or easier)
Definition: DevelopmentSettings.php:59
$wgRestAPIAdditionalRouteFiles
$wgRestAPIAdditionalRouteFiles
Definition: DevelopmentSettings.php:70
$wgMaxShellMemory
$wgMaxShellMemory
Definition: DevelopmentSettings.php:73
$wgMaxShellWallClockTime
$wgMaxShellWallClockTime
Definition: DevelopmentSettings.php:76
$wgLocalisationCacheConf
global $wgLocalisationCacheConf
Definition: DevelopmentSettings.php:30
$wgEnableJavaScriptTest
$wgEnableJavaScriptTest
Definition: DevelopmentSettings.php:67