Page MenuHomePhabricator

Deprecate non-configuration globals
Open, Needs TriagePublic


These globals introduce global state, making testing hard and introducing subtle bugs. They need to die.

The list includes:

  • $wgAuth
  • $wgContLang
  • $wgLang
  • $wgMemc
  • $wgOut
  • $wgParser
  • $wgRequest
  • $wgTitle
  • $wgUser

Event Timeline

Should $wgFullyInitialised be added to this list? Usually, constants are used for this purpose. (Especially considering that this global does not appear to be defined false anywhere before it is defined as true)