maintenance/commandLine.inc loads DefaultSettings, LocalSettings and then runs Setup.php
authorPlatonides <platonides@users.mediawiki.org>
Mon, 21 Feb 2011 23:19:26 +0000 (23:19 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 21 Feb 2011 23:19:26 +0000 (23:19 +0000)
commit4ef087080d38ae852d864e0b47aa7e8f10dc36f2
treef51979907715459006e4d8beed4eb19ee048f670
parente9149c09f088a51c17c1450ea91278b83ed22bf5
maintenance/commandLine.inc loads DefaultSettings, LocalSettings and then runs Setup.php
As Setup.php assigns variables based on the cache config, bootstrap.php was late on reseting them, as some objects were already created.
So we could end up with a SqlBagOStuff created there, which when later accessed (such as trying to invalidate the cache for a user) would
-as any non-sqlite SqlBagOStuff- open a new db connection. Which is precisely what we shall not be done when dealing with temporary tables
(and would indeed fail miserably due to not finding unittest_objectcache table).

In summary, reenabling temporary tables disabled in r79411.
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/bootstrap.php
tests/phpunit/phpunit.php