Page MenuHomePhabricator

Global variable $maintenance in doMaintenance.php may clash with other components
Open, MediumPublic

Description

Unlike other global objects, it doesn't have a wg prefix ([[mw:wg]]), its name is so common, and it's even not mentioned in [[mw:Manual:Global object variables]].

Found in IRC log (MediaWiki-General):

SleePy: Some reason after calling require( $maintenance->loadSettings() ); in doMaintenance.php it seems to set the $maintenance object to 0;

SleePy: Oh I think I found it, has to do with a integration file for authentication which is calling its own $maintenance


Version: 1.22.0
Severity: normal

Details

Reference
bz55921

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:18 AM
bzimport set Reference to bz55921.
bzimport added a subscriber: Unknown Object (MLST).