MediaWiki
1.34.0
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
28
global
$wgDevelopmentWarnings
,
$wgShowExceptionDetails
,
$wgShowHostnames
,
29
$wgDebugRawPage
,
$wgCommandLineMode
,
$wgDebugLogFile
,
30
$wgDBerrorLog
,
$wgDebugLogGroups
,
$wgLocalisationCacheConf
;
31
32
// Use of wfWarn() should cause tests to fail
33
$wgDevelopmentWarnings
=
true
;
34
35
// Enable showing of errors
36
$wgShowExceptionDetails
=
true
;
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
[
'exception'
] =
"$logDir/mw-exception.log"
;
51
$wgDebugLogGroups
[
'error'
] =
"$logDir/mw-error.log"
;
52
}
53
unset(
$logDir
);
54
59
global
$wgRateLimits
;
60
61
// Disable rate-limiting to allow integration tests to run unthrottled
62
// in CI and for devs locally (T225796)
63
$wgRateLimits
= [];
64
70
global
$wgSQLMode
,
$wgLegacyJavaScriptGlobals
;
71
72
// Enable MariaDB/MySQL strict mode (T108255)
73
$wgSQLMode
=
'TRADITIONAL'
;
74
75
// Disable legacy javascript globals in CI and for devs (T72470)
76
$wgLegacyJavaScriptGlobals
=
false
;
77
78
// Localisation Cache to StaticArray (T218207)
79
$wgLocalisationCacheConf
[
'store'
] =
'array'
;
$wgDevelopmentWarnings
global $wgDevelopmentWarnings
Debugging for MediaWiki.
Definition:
DevelopmentSettings.php:28
$wgDebugRawPage
global $wgDebugRawPage
Definition:
DevelopmentSettings.php:28
$wgLegacyJavaScriptGlobals
global $wgLegacyJavaScriptGlobals
Definition:
DevelopmentSettings.php:70
$wgDebugLogGroups
global $wgDebugLogGroups
Definition:
DevelopmentSettings.php:28
$wgCommandLineMode
global $wgCommandLineMode
Definition:
DevelopmentSettings.php:28
$wgDebugLogFile
global $wgDebugLogFile
Definition:
DevelopmentSettings.php:28
$wgSQLMode
global $wgSQLMode
Experimental changes that may later become the default.
Definition:
DevelopmentSettings.php:70
$wgShowHostnames
global $wgShowHostnames
Definition:
DevelopmentSettings.php:28
$wgDBerrorLog
global $wgDBerrorLog
Definition:
DevelopmentSettings.php:28
$logDir
$logDir
Definition:
DevelopmentSettings.php:41
$wgShowExceptionDetails
global $wgShowExceptionDetails
Definition:
DevelopmentSettings.php:28
$wgRateLimits
global $wgRateLimits
Make testing possible (or easier)
Definition:
DevelopmentSettings.php:59
$wgLocalisationCacheConf
global $wgLocalisationCacheConf
Definition:
DevelopmentSettings.php:28
includes
DevelopmentSettings.php
Generated on Thu Dec 19 2019 14:54:15 for MediaWiki by
1.8.16