Page MenuHomePhabricator

getConfiguration.php can not export null variables
Closed, ResolvedPublic

Description

getConfiguration.php script can export various settings, it is also used to import configurations in SiteConfiguration.php. However, due to a bug in isAllowedVariable() function, it allows only values which are arrays or is_scalar(). Unfortunately, is_scalar(NULL) is false, so it produces an error if any config variable is set to null.

Event Timeline

Smalyshev raised the priority of this task from to Needs Triage.
Smalyshev updated the task description. (Show Details)
Smalyshev added subscribers: Smalyshev, EBernhardson.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 31 2015, 10:43 PM

Change 235143 had a related patch set uploaded (by Smalyshev):
Allow to export null values

https://gerrit.wikimedia.org/r/235143

Change 235143 merged by jenkins-bot:
Allow to export null values

https://gerrit.wikimedia.org/r/235143

Smalyshev closed this task as Resolved.Aug 31 2015, 11:02 PM
Smalyshev claimed this task.
Legoktm set Security to None.