Author: nashtrash1
Description:
Feature in function GlobalFunctions::wfReadOnly(), commented, "Set $wgReadOnly
for faster access next time" causes test GlobalTest::testReadOnlySet() to fail.
- $wgReadOnly starts as null
- GlobalTest::testReadOnlyEmpty() calls wfReadOnly(). Since $wgReadOnly is
null, $wgReadOnlyFile is read, and, assuming it's empty, $wgReadOnly is set to
"false"
- GlobalTest::testReadOnlySet() modifies the file described by $wgReadOnlyFile
and calls wfReadOnly(), which does not open the file again but instead returns
the value of $wgReadOnly ("false").
Version: 1.6.x
Severity: normal
Platform: PC