*/
/**
- * Debugging: PHP
+ * Debugging for PHP
*/
// Enable showing of errors
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;
$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;