From: Roan Kattouw Date: Mon, 14 Mar 2011 10:27:24 +0000 (+0000) Subject: Fix r83140: 'ObjectCache::newAnything' is not a valid callback, use array( 'ObjectCac... X-Git-Tag: 1.31.0-rc.0~31432 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=2ecfa43f088765664d8ee87b820b2740ee31941a;p=lhc%2Fweb%2Fwiklou.git Fix r83140: 'ObjectCache::newAnything' is not a valid callback, use array( 'ObjectCache', 'newAnything' ) . Apparently this explodes in some versions of PHP but not in others --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index b7bcbe91ca..6aff1d6d86 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1534,9 +1534,9 @@ $wgObjectCaches = array( CACHE_DB => array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ), CACHE_DBA => array( 'class' => 'DBABagOStuff' ), - CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ), - CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ), - CACHE_MEMCACHED => array( 'factory' => 'ObjectCache::newMemcached' ), + CACHE_ANYTHING => array( 'factory' => array( 'ObjectCache', 'newAnything' ) ), + CACHE_ACCEL => array( 'factory' => array( 'ObjectCache', 'newAccelerator' ) ), + CACHE_MEMCACHED => array( 'factory' => array( 'ObjectCache', 'newMemcached' ) ), 'eaccelerator' => array( 'class' => 'eAccelBagOStuff' ), 'apc' => array( 'class' => 'APCBagOStuff' ),