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