Fix ObjectCache::newAccelerator with string fallback in PHP 5.3
authorMarius Hoch <hoo@online.de>
Sat, 3 Oct 2015 17:15:33 +0000 (19:15 +0200)
committerMarius Hoch <hoo@online.de>
Sat, 3 Oct 2015 17:15:33 +0000 (19:15 +0200)
commite6e4ffd2f4b4f8d93c0524605da1f29ffa9daeee
tree67f5ecf4b74ad84ebb3ff00b937f84e684370a38
parent288873409c3a0c09952213996cdab1dfff852114
Fix ObjectCache::newAccelerator with string fallback in PHP 5.3

Because in PHP5.3:

php > $a = "hash";
php > echo isset( $a['fallback'] );
1
php > echo $a['fallback'];
h

This will fix using MediaWiki with MySQL on PHP5.3
if neither APC, xcache nor wincache are available.

Change-Id: Iebf034be75b282e2654cd298713455caf062eda4
includes/objectcache/ObjectCache.php