MediaWiki master
Setup.php
Go to the documentation of this file.
1<?php
53// phpcs:disable MediaWiki.Usage.DeprecatedGlobalVariables
75use Psr\Log\LoggerInterface;
76use Wikimedia\RequestTimeout\RequestTimeout;
77
85// This file must be included from a valid entry point (e.g. WebStart.php, Maintenance.php)
86if ( !defined( 'MEDIAWIKI' ) ) {
87 exit( 1 );
88}
89
90// PHP must not be configured to overload mbstring functions. (T5782, T122807)
91// This was deprecated by upstream in PHP 7.2 and was removed in PHP 8.0.
92if ( ini_get( 'mbstring.func_overload' ) ) {
93 die( 'MediaWiki does not support installations where mbstring.func_overload is non-zero.' );
94}
95
96// The MW_ENTRY_POINT constant must always exists, to make it safe to access.
97// For compat, we do support older and custom MW entrypoints that don't set this,
98// in which case we assign a default here.
99if ( !defined( 'MW_ENTRY_POINT' ) ) {
105 define( 'MW_ENTRY_POINT', 'unknown' );
106}
107
108// The $IP variable is defined for use by LocalSettings.php.
109// It is made available as a global variable for backwards compatibility.
110//
111// Source code should instead use the MW_INSTALL_PATH constant, or the
112// MainConfigNames::BaseDirectory setting. The BaseDirectory setting is set further
113// down in Setup.php to the value of MW_INSTALL_PATH.
114global $IP;
115$IP = wfDetectInstallPath(); // ensure MW_INSTALL_PATH is defined
116
122require_once MW_INSTALL_PATH . '/includes/AutoLoader.php';
123require_once MW_INSTALL_PATH . '/includes/Defines.php';
124
125// Assert that composer dependencies were successfully loaded
126if ( !interface_exists( LoggerInterface::class ) ) {
127 $message = (
128 'MediaWiki requires the <a href="https://github.com/php-fig/log">PSR-3 logging ' .
129 "library</a> to be present. This library is not embedded directly in MediaWiki's " .
130 "git repository and must be installed separately by the end user.\n\n" .
131 'Please see the <a href="https://www.mediawiki.org/wiki/Download_from_Git' .
132 '#Fetch_external_libraries">instructions for installing libraries</a> on mediawiki.org ' .
133 'for help on installing the required components.'
134 );
135 echo $message;
136 trigger_error( $message, E_USER_ERROR );
137}
138
139// Deprecated global variable for backwards-compatibility.
140// New code should check MW_ENTRY_POINT directly.
142
149
151
152$wgSettings = SettingsBuilder::getInstance();
153
154if ( defined( 'MW_USE_CONFIG_SCHEMA_CLASS' ) ) {
155 // Load config schema from MainConfigSchema. Useful for running scripts that
156 // generate other representations of the config schema. This is slow, so it
157 // should not be used for serving web traffic.
158 $wgSettings->load( new ReflectionSchemaSource( MainConfigSchema::class ) );
159} else {
160 $wgSettings->load( new PhpSettingsSource( MW_INSTALL_PATH . '/includes/config-schema.php' ) );
161}
162
163require_once MW_INSTALL_PATH . '/includes/GlobalFunctions.php';
164
165HeaderCallback::register();
166
167// Set the encoding used by PHP for reading HTTP input, and writing output.
168// This is also the default for mbstring functions.
169mb_internal_encoding( 'UTF-8' );
170
175// Initialize some config settings with dynamic defaults, and
176// make default settings available in globals for use in LocalSettings.php.
177$wgSettings->putConfigValues( [
178 MainConfigNames::BaseDirectory => MW_INSTALL_PATH,
179 MainConfigNames::ExtensionDirectory => MW_INSTALL_PATH . '/extensions',
180 MainConfigNames::StyleDirectory => MW_INSTALL_PATH . '/skins',
181 MainConfigNames::ServiceWiringFiles => [ MW_INSTALL_PATH . '/includes/ServiceWiring.php' ],
182 'Version' => MW_VERSION,
183] );
184$wgSettings->apply();
185
186// $wgSettings->apply() puts all configuration into global variables.
187// If we are not in global scope, make all relevant globals available
188// in this file's scope as well.
189$wgScopeTest = 'MediaWiki Setup.php scope test';
190if ( !isset( $GLOBALS['wgScopeTest'] ) || $GLOBALS['wgScopeTest'] !== $wgScopeTest ) {
191 foreach ( $wgSettings->getConfigSchema()->getDefinedKeys() as $key ) {
192 $var = "wg$key";
193 // phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix
194 global $$var;
195 }
196 unset( $key, $var );
197}
198unset( $wgScopeTest );
199
200try {
201 if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
202 call_user_func( MW_CONFIG_CALLBACK, $wgSettings );
203 } else {
204 wfDetectLocalSettingsFile( MW_INSTALL_PATH );
205
206 if ( getenv( 'MW_USE_LOCAL_SETTINGS_LOADER' ) ) {
207 // NOTE: This will not work for configuration variables that use a prefix
208 // other than "wg".
209 $localSettingsLoader = new LocalSettingsLoader( $wgSettings, MW_INSTALL_PATH );
210 $localSettingsLoader->loadLocalSettingsFile( MW_CONFIG_FILE );
211 unset( $localSettingsLoader );
212 } else {
213 if ( str_ends_with( MW_CONFIG_FILE, '.php' ) ) {
214 // make defaults available as globals
215 $wgSettings->apply();
216 require_once MW_CONFIG_FILE;
217 } else {
218 $wgSettings->loadFile( MW_CONFIG_FILE );
219 }
220 }
221 }
222
223 // Make settings loaded by LocalSettings.php available in globals for use here
224 $wgSettings->apply();
225} catch ( MissingExtensionException $e ) {
226 // Make a common mistake give a friendly error
227 $e->render();
228}
229
230// If in a wiki-farm, load site-specific settings
231if ( $wgSettings->getConfig()->get( MainConfigNames::WikiFarmSettingsDirectory ) ) {
232 $wikiFarmSettingsLoader = new WikiFarmSettingsLoader( $wgSettings );
233 $wikiFarmSettingsLoader->loadWikiFarmSettings();
234 unset( $wikiFarmSettingsLoader );
235}
236
237// All settings should be loaded now.
238$wgSettings->enterRegistrationStage();
239
247if ( defined( 'MW_SETUP_CALLBACK' ) ) {
248 call_user_func( MW_SETUP_CALLBACK, $wgSettings );
249 // Make any additional settings available in globals for use here
250 $wgSettings->apply();
251}
252
253// Apply dynamic defaults declared in config schema callbacks.
255$dynamicDefaults->applyDynamicDefaults( $wgSettings->getConfigBuilder() );
256
257// Make updated config available in global scope.
258$wgSettings->apply();
259
260// Apply dynamic defaults implemented in SetupDynamicConfig.php.
261// Ideally, all logic in SetupDynamicConfig would be converted to
262// callbacks in the config schema.
263require __DIR__ . '/SetupDynamicConfig.php';
264
265if ( defined( 'MW_AUTOLOAD_TEST_CLASSES' ) ) {
266 require_once __DIR__ . '/../tests/common/TestsAutoLoader.php';
267}
268
269if ( $wgBaseDirectory !== MW_INSTALL_PATH ) {
270 throw new FatalError(
271 '$wgBaseDirectory must not be modified in settings files! ' .
272 'Use the MW_INSTALL_PATH environment variable to override the installation root directory.'
273 );
274}
275
276// Start time limit
277if ( $wgRequestTimeLimit && MW_ENTRY_POINT !== 'cli' ) {
278 RequestTimeout::singleton()->setWallTimeLimit( $wgRequestTimeLimit );
279}
280
284if ( defined( 'MW_AUTOLOAD_TEST_CLASSES' ) ) {
285 ExtensionRegistry::getInstance()->setLoadTestClassesAndNamespaces( true );
286}
287
288ExtensionRegistry::getInstance()->setSettingsBuilder( $wgSettings );
289ExtensionRegistry::getInstance()->loadFromQueue();
290// Don't let any other extensions load
292
298if ( defined( 'MW_FINAL_SETUP_CALLBACK' ) ) {
299 call_user_func( MW_FINAL_SETUP_CALLBACK, $wgSettings );
300 // Make any additional settings available in globals for use below
301 $wgSettings->apply();
302}
303
304// Config can no longer be changed.
305$wgSettings->enterReadOnlyStage();
306
307// Set an appropriate locale (T291234)
308// setlocale() will return the locale name actually set.
309// The putenv() is meant to propagate the choice of locale to shell commands
310// so that they will interpret UTF-8 correctly. If you have a problem with a
311// shell command and need to send a special locale, you can override the locale
312// with Command::environment().
313putenv( "LC_ALL=" . setlocale( LC_ALL, 'C.UTF-8', 'C' ) );
314
315// Set PHP runtime to the desired timezone
316date_default_timezone_set( $wgLocaltimezone );
317
318MWDebug::setup();
319
320// Enable the global service locator.
321// Trivial expansion of site configuration should go before this point.
322// Any non-trivial expansion that requires calling into MediaWikiServices or other parts of MW.
323MediaWikiServices::allowGlobalInstance();
324
325// Define a constant that indicates that the bootstrapping of the service locator
326// is complete.
327define( 'MW_SERVICE_BOOTSTRAP_COMPLETE', 1 );
328
329MWExceptionRenderer::setShowExceptionDetails( $wgShowExceptionDetails );
330if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
331 // Never install the handler in PHPUnit tests, otherwise PHPUnit's own handler will be unset and things
332 // like convertWarningsToExceptions won't work.
333 MWExceptionHandler::installHandler( $wgLogExceptionBacktrace, $wgPropagateErrors );
334}
336
337// Non-trivial validation of: $wgServer
338// The FatalError page only renders cleanly after MWExceptionHandler is installed.
339if ( $wgServer === false ) {
340 // T30798: $wgServer must be explicitly set
341 throw new FatalError(
342 '$wgServer must be set in LocalSettings.php. ' .
343 'See <a href="https://www.mediawiki.org/wiki/Manual:$wgServer">' .
344 'https://www.mediawiki.org/wiki/Manual:$wgServer</a>.'
345 );
346}
347
348// Set up a fake $wgHooks array.
349// XXX: It would be nice if we could still get the originally configured hook handlers
350// using the MainConfigNames::Hooks setting, but it's not really needed,
351// since we need the HookContainer to be initialized first anyway.
352
353global $wgHooks;
355 MediaWikiServices::getInstance()->getHookContainer(),
357);
358
359// Non-trivial expansion of: $wgCanonicalServer, $wgServerName.
360// These require calling global functions.
361// Also here are other settings that further depend on these two.
362if ( $wgCanonicalServer === false ) {
363 $wgCanonicalServer = MediaWikiServices::getInstance()->getUrlUtils()->getCanonicalServer();
364}
366
367if ( $wgServerName !== false ) {
368 wfWarn( '$wgServerName should be derived from $wgCanonicalServer, '
369 . 'not customized. Overwriting $wgServerName.' );
370}
371$wgServerName = parse_url( $wgCanonicalServer, PHP_URL_HOST );
372
373// $wgEmergencyContact and $wgPasswordSender may be false or empty string (T104142)
374if ( !$wgEmergencyContact ) {
375 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
376}
377if ( !$wgPasswordSender ) {
378 $wgPasswordSender = 'apache@' . $wgServerName;
379}
380if ( !$wgNoReplyAddress ) {
382}
383
384// Non-trivial expansion of: $wgSecureLogin
385// (due to calling wfWarn).
386if ( $wgSecureLogin && substr( $wgServer, 0, 2 ) !== '//' ) {
387 $wgSecureLogin = false;
388 wfWarn( 'Secure login was enabled on a server that only supports '
389 . 'HTTP or HTTPS. Disabling secure login.' );
390}
391
392// Now that GlobalFunctions is loaded, set defaults that depend on it.
393if ( $wgTmpDirectory === false ) {
395}
396
398 // Apply $wgSharedDB table aliases for the local LB (all non-foreign DB connections)
399 MediaWikiServices::getInstance()->getDBLoadBalancer()->setTableAliases(
400 array_fill_keys(
402 [
403 'dbname' => $wgSharedDB,
404 'schema' => $wgSharedSchema,
405 'prefix' => $wgSharedPrefix
406 ]
407 )
408 );
409}
410
411// Raise the memory limit if it's too low
412// NOTE: This use wfDebug, and must remain after the MWDebug::setup() call.
414
415// Explicit globals, so this works with bootstrap.php
417
418// Initialize the request object in $wgRequest
419$wgRequest = RequestContext::getMain()->getRequest(); // BackCompat
420
421// Make sure that object caching does not undermine the ChronologyProtector improvements
422if ( $wgRequest->getCookie( 'UseDC', '' ) === 'master' ) {
423 // The user is pinned to the primary DC, meaning that they made recent changes which should
424 // be reflected in their subsequent web requests. Avoid the use of interim cache keys because
425 // they use a blind TTL and could be stale if an object changes twice in a short time span.
426 MediaWikiServices::getInstance()->getMainWANObjectCache()->useInterimHoldOffCaching( false );
427}
428
429// Useful debug output
430( static function () {
431 global $wgRequest;
432
433 $logger = LoggerFactory::getInstance( 'wfDebug' );
434 if ( MW_ENTRY_POINT === 'cli' ) {
435 $self = $_SERVER['PHP_SELF'] ?? '';
436 $logger->debug( "\n\nStart command line script $self" );
437 } else {
438 $debug = "\n\nStart request {$wgRequest->getMethod()} {$wgRequest->getRequestURL()}\n";
439 $debug .= "IP: " . $wgRequest->getIP() . "\n";
440 $debug .= "HTTP HEADERS:\n";
441 foreach ( $wgRequest->getAllHeaders() as $name => $value ) {
442 $debug .= "$name: $value\n";
443 }
444 $debug .= "(end headers)";
445 $logger->debug( $debug );
446 }
447} )();
448
449// Most of the config is out, some might want to run hooks here.
450( new HookRunner( MediaWikiServices::getInstance()->getHookContainer() ) )->onSetupAfterCache();
451
452// Now that variant lists may be available, parse any action paths and article paths
453// as query parameters.
454//
455// Skip title interpolation on API queries where it is useless and sometimes harmful (T18019).
456//
457// Optimization: Skip on load.php and all other entrypoints besides index.php to save time.
458//
459// TODO: Figure out if this can be safely done after everything else in Setup.php (e.g. any
460// hooks or other state that would miss this?). If so, move to wfIndexMain or MediaWiki::run.
461if ( MW_ENTRY_POINT === 'index' ) {
462 $wgRequest->interpolateTitle();
463}
464
469if ( !defined( 'MW_NO_SESSION' ) && MW_ENTRY_POINT !== 'cli' ) {
470 // If session.auto_start is there, we can't touch session name
471 if ( $wgPHPSessionHandling !== 'disable' && !wfIniGetBool( 'session.auto_start' ) ) {
472 HeaderCallback::warnIfHeadersSent();
473 session_name( $wgSessionName ?: $wgCookiePrefix . '_session' );
474 }
475
476 // Create the SessionManager singleton and set up our session handler,
477 // unless we're specifically asked not to.
478 if ( !defined( 'MW_NO_SESSION_HANDLER' ) ) {
479 MediaWiki\Session\PHPSessionHandler::install(
480 MediaWiki\Session\SessionManager::singleton()
481 );
482 }
483
484 $contLang = MediaWikiServices::getInstance()->getContentLanguage();
485
486 // Initialize the session
487 try {
488 $session = MediaWiki\Session\SessionManager::getGlobalSession();
489 } catch ( MediaWiki\Session\SessionOverflowException $ex ) {
490 // The exception is because the request had multiple possible
491 // sessions tied for top priority. Report this to the user.
492 $list = [];
493 foreach ( $ex->getSessionInfos() as $info ) {
494 $list[] = $info->getProvider()->describe( $contLang );
495 }
496 $list = $contLang->listToText( $list );
497 throw new HttpError( 400,
498 Message::newFromKey( 'sessionmanager-tie', $list )->inLanguage( $contLang )
499 );
500 }
501
502 unset( $contLang );
503
504 if ( $session->isPersistent() ) {
505 $wgInitialSessionId = $session->getSessionId();
506 }
507
508 $session->renew();
509 if ( MediaWiki\Session\PHPSessionHandler::isEnabled() &&
510 ( $session->isPersistent() || $session->shouldRememberUser() ) &&
511 session_id() !== $session->getId()
512 ) {
513 // Start the PHP-session for backwards compatibility
514 if ( session_id() !== '' ) {
515 wfDebugLog( 'session', 'PHP session {old_id} was already started, changing to {new_id}', 'all', [
516 'old_id' => session_id(),
517 'new_id' => $session->getId(),
518 ] );
519 session_write_close();
520 }
521 session_id( $session->getId() );
522 session_start();
523 }
524
525 unset( $session );
526} else {
527 // Even if we didn't set up a global Session, still install our session
528 // handler unless specifically requested not to.
529 if ( !defined( 'MW_NO_SESSION_HANDLER' ) ) {
530 MediaWiki\Session\PHPSessionHandler::install(
531 MediaWiki\Session\SessionManager::singleton()
532 );
533 }
534}
535
536// Explicit globals, so this works with bootstrap.php
538
544$wgUser = new StubGlobalUser( RequestContext::getMain()->getUser() ); // BackCompat
545register_shutdown_function( static function () {
546 StubGlobalUser::$destructorDeprecationDisarmed = true;
547} );
548
553
557$wgOut = RequestContext::getMain()->getOutput(); // BackCompat
558
562$wgTitle = null;
563
564// Explicit globals, so this works with bootstrap.php
566
567// Extension setup functions
568// Entries should be added to this variable during the inclusion
569// of the extension file. This allows the extension to perform
570// any necessary initialisation in the fully initialised environment
571foreach ( $wgExtensionFunctions as $func ) {
572 call_user_func( $func );
573}
574unset( $func ); // no global pollution; destroy reference
575
576// If the session user has a 0 id but a valid name, that means we need to
577// autocreate it.
578if ( !defined( 'MW_NO_SESSION' ) && MW_ENTRY_POINT !== 'cli' ) {
579 $sessionUser = MediaWiki\Session\SessionManager::getGlobalSession()->getUser();
580 if ( $sessionUser->getId() === 0 &&
581 MediaWikiServices::getInstance()->getUserNameUtils()->isValid( $sessionUser->getName() )
582 ) {
583 $res = MediaWikiServices::getInstance()->getAuthManager()->autoCreateUser(
584 $sessionUser,
585 MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_SESSION,
586 true
587 );
588 \MediaWiki\Logger\LoggerFactory::getInstance( 'authevents' )->info( 'Autocreation attempt', [
589 'event' => 'autocreate',
590 'successful' => $res->isGood(),
591 'status' => ( $res->getErrorsArray() ?: $res->getWarningsArray() )[0][0] ?? '-',
592 ] );
593 unset( $res );
594 }
595 unset( $sessionUser );
596}
597
598// Optimization: Avoid overhead from DeferredUpdates and Pingback deps when turned off.
599if ( MW_ENTRY_POINT !== 'cli' && $wgPingback ) {
600 // NOTE: Do not refactor to inject Config or otherwise make unconditional service call.
601 //
602 // On a plain install of MediaWiki, Pingback is likely the *only* feature
603 // involving DeferredUpdates or DB_PRIMARY on a regular page view.
604 // To allow for error recovery and fault isolation, let admins turn this
605 // off completely. (T269516)
606 DeferredUpdates::addCallableUpdate( static function () {
607 MediaWikiServices::getInstance()->getPingback()->run();
608 } );
609}
610
612if ( $settingsWarnings ) {
613 $logger = LoggerFactory::getInstance( 'Settings' );
614 foreach ( $settingsWarnings as $msg ) {
615 $logger->warning( $msg );
616 }
617 unset( $logger );
618}
619
620unset( $settingsWarnings );
621
622// Explicit globals, so this works with bootstrap.php
625
626// T264370
627if ( !defined( 'MW_NO_SESSION' ) && MW_ENTRY_POINT !== 'cli' ) {
628 MediaWiki\Session\SessionManager::singleton()->logPotentialSessionLeakage();
629}
getUser()
wfDetectLocalSettingsFile(?string $installationPath=null)
Decide and remember where to load LocalSettings from.
wfDetectInstallPath()
Decide and remember where mediawiki is installed.
const MW_VERSION
The running version of MediaWiki.
Definition Defines.php:36
wfTempDir()
Tries to get the system directory for temporary files.
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
wfMemoryLimit( $newLimit)
Raise PHP's memory limit (if needed).
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.
wfDebugLog( $logGroup, $text, $dest='all', array $context=[])
Send a line to a supplementary debug log file, if configured, or main debug log if not.
if(!defined( 'MEDIAWIKI')) if(ini_get('mbstring.func_overload')) if(!defined( 'MW_ENTRY_POINT')) global $IP
Environment checks.
Definition Setup.php:99
global $wgRequest
Definition Setup.php:416
if(defined( 'MW_SETUP_CALLBACK')) $dynamicDefaults
Customization point after most things are loaded (constants, functions, classes, LocalSettings.
Definition Setup.php:254
if(!defined('MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli') if(MW_ENTRY_POINT !=='cli' && $wgPingback $settingsWarnings)
Definition Setup.php:611
$wgUser
Definition Setup.php:544
if( $wgCanonicalServer===false) $wgVirtualRestConfig['global']['domain']
Definition Setup.php:365
$wgAutoloadClasses
Definition Setup.php:150
global $wgInitialSessionId
Definition Setup.php:416
if( $wgServer===false) global $wgHooks
Definition Setup.php:339
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgLang
Definition Setup.php:537
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition Setup.php:537
$wgConf
$wgConf hold the site configuration.
Definition Setup.php:148
if( $wgServerName !==false) $wgServerName
Definition Setup.php:371
if(!interface_exists(LoggerInterface::class)) $wgCommandLineMode
Pre-config setup: Before loading LocalSettings.php.
Definition Setup.php:141
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgTitle
Definition Setup.php:537
$wgScopeTest
Definition Setup.php:189
global $wgFullyInitialised
Definition Setup.php:565
global $wgExtensionFunctions
Definition Setup.php:565
$wgSettings
Definition Setup.php:152
const MW_ENTRY_POINT
Definition api.php:35
Abort the web request with a custom HTML string that will represent the entire response.
Show an error that looks like an HTTP server error.
Definition HttpError.php:32
Configuration holder, particularly for multi-wiki sites.
Group all the pieces relevant to the context of a request into one instance.
Debug toolbar.
Definition MWDebug.php:48
Defer callable updates to run later in the PHP process.
This class provides an implementation of the core hook interfaces, forwarding hook calls to HookConta...
Create PSR-3 logger objects.
A class containing constants representing the names of configuration variables.
This class contains schema declarations for all configuration variables known to MediaWiki core.
Service locator for MediaWiki core services.
Utility for loading LocalSettings files.
Builder class for constructing a Config object from a set of sources during bootstrap.
Settings loaded from a PHP file path as an array structure.
Constructs a settings array based on a PHP class by inspecting class members to construct a schema.
Utility for loading site-specific settings in a multi-tenancy ("wiki farm" or "wiki family") environm...
Stub object for the global user ($wgUser) that makes it possible to change the relevant underlying ob...
Stub object for the user language.
Represents a title within MediaWiki.
Definition Title.php:78
internal since 1.36
Definition User.php:93
Thrown when ExtensionRegistry cannot open the extension.json or skin.json file.
render()
Output an error response and exit.
static init(array $profilerConf)
Definition Profiler.php:68
$wgMemoryLimit
Config variable stub for the MemoryLimit setting, for use by phpdoc and IDEs.
$wgEmergencyContact
Config variable stub for the EmergencyContact setting, for use by phpdoc and IDEs.
$wgSharedTables
Config variable stub for the SharedTables setting, for use by phpdoc and IDEs.
$wgSessionName
Config variable stub for the SessionName setting, for use by phpdoc and IDEs.
$wgLogExceptionBacktrace
Config variable stub for the LogExceptionBacktrace setting, for use by phpdoc and IDEs.
$wgTmpDirectory
Config variable stub for the TmpDirectory setting, for use by phpdoc and IDEs.
$wgNoReplyAddress
Config variable stub for the NoReplyAddress setting, for use by phpdoc and IDEs.
$wgProfiler
Config variable stub for the Profiler setting, for use by phpdoc and IDEs.
$wgBaseDirectory
Config variable stub for the BaseDirectory setting, for use by phpdoc and IDEs.
$wgSecureLogin
Config variable stub for the SecureLogin setting, for use by phpdoc and IDEs.
$wgLocaltimezone
Config variable stub for the Localtimezone setting, for use by phpdoc and IDEs.
$wgShowExceptionDetails
Config variable stub for the ShowExceptionDetails setting, for use by phpdoc and IDEs.
$wgRequestTimeLimit
Config variable stub for the RequestTimeLimit setting, for use by phpdoc and IDEs.
$wgSharedDB
Config variable stub for the SharedDB setting, for use by phpdoc and IDEs.
$wgCanonicalServer
Config variable stub for the CanonicalServer setting, for use by phpdoc and IDEs.
$wgServer
Config variable stub for the Server setting, for use by phpdoc and IDEs.
$wgPropagateErrors
Config variable stub for the PropagateErrors setting, for use by phpdoc and IDEs.
$wgSharedSchema
Config variable stub for the SharedSchema setting, for use by phpdoc and IDEs.
$wgPasswordSender
Config variable stub for the PasswordSender setting, for use by phpdoc and IDEs.
$wgPingback
Config variable stub for the Pingback setting, for use by phpdoc and IDEs.
$wgCookiePrefix
Config variable stub for the CookiePrefix setting, for use by phpdoc and IDEs.
$wgSharedPrefix
Config variable stub for the SharedPrefix setting, for use by phpdoc and IDEs.
$wgPHPSessionHandling
Config variable stub for the PHPSessionHandling setting, for use by phpdoc and IDEs.
const MW_CONFIG_CALLBACK
Definition install.php:32
A helper class for throttling authentication attempts.