X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDevelopmentSettings.php;h=d93caa7deaa8ab08276761f0d6471314b9995728;hb=4b7cbbd9980f5ff14a0066ae7992af2793dcabea;hp=7f00c6cb0b8b34ea93e2cb3dfff867dbd1c90c83;hpb=6a19bbfdece16150b36ee8ce3c105de4f22111ce;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DevelopmentSettings.php b/includes/DevelopmentSettings.php index 7f00c6cb0b..d93caa7dea 100644 --- a/includes/DevelopmentSettings.php +++ b/includes/DevelopmentSettings.php @@ -14,7 +14,7 @@ */ /** - * Debugging: PHP + * Debugging for PHP */ // Enable showing of errors @@ -22,11 +22,12 @@ error_reporting( -1 ); ini_set( 'display_errors', 1 ); /** - * Debugging: MediaWiki + * Debugging for MediaWiki */ + global $wgDevelopmentWarnings, $wgShowExceptionDetails, $wgShowHostnames, - $wgDebugRawPage, $wgDebugComments, $wgDebugDumpSql, $wgDebugTimestamps, - $wgCommandLineMode, $wgDebugLogFile, $wgDBerrorLog, $wgDebugLogGroups; + $wgDebugRawPage, $wgCommandLineMode, $wgDebugLogFile, + $wgDBerrorLog, $wgDebugLogGroups; // Use of wfWarn() should cause tests to fail $wgDevelopmentWarnings = true; @@ -36,9 +37,6 @@ $wgShowExceptionDetails = true; $wgShowHostnames = true; $wgDebugRawPage = true; // T49960 -// Enable MariaDB/MySQL strict mode -$wgSQLMode = 'TRADITIONAL'; - // Enable log files $logDir = getenv( 'MW_LOG_DIR' ); if ( $logDir ) { @@ -53,3 +51,26 @@ if ( $logDir ) { $wgDebugLogGroups['error'] = "$logDir/mw-error.log"; } unset( $logDir ); + +/** + * Make testing possible (or easier) + */ + +global $wgRateLimits; + +// Disable rate-limiting to allow integration tests to run unthrottled +// in CI and for devs locally (T225796) +$wgRateLimits = []; + +/** + * Experimental changes that may later become the default. + * (Must reference a Phabricator ticket) + */ + +global $wgSQLMode, $wgLegacyJavaScriptGlobals; + +// Enable MariaDB/MySQL strict mode (T108255) +$wgSQLMode = 'TRADITIONAL'; + +// Disable legacy javascript globals in CI and for devs (T72470) +$wgLegacyJavaScriptGlobals = false;