ExtensionRegistry: Properly detect if a global is already set
authorMarius Hoch <hoo@online.de>
Tue, 23 Jan 2018 18:44:28 +0000 (10:44 -0800)
committerMarius Hoch <hoo@online.de>
Tue, 23 Jan 2018 18:44:28 +0000 (10:44 -0800)
commitcc433d1ff1dd9e196a911fcc9dd3748611b413ed
treea68299f8fdda1cd2588562a1bfca1189af04b64c
parent1a21a63d52b9ebf940cd35f041d675d39c9d474a
ExtensionRegistry: Properly detect if a global is already set

$foo = null; isset( $foo ); will yield false.

Sometimes we want to explicitly set a config to null, but ExtensionRegistry
is then overriding this variable with the default value.

This is no consistent with the old workflow:
require_once the extension and then override the setting with null.

Bug: T128661
Change-Id: I0654c9369a596e84591fcaa9643703e6b4ccf57e
includes/registration/ExtensionRegistry.php
tests/phpunit/includes/registration/ExtensionRegistryTest.php