From 2ecfa43f088765664d8ee87b820b2740ee31941a Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 14 Mar 2011 10:27:24 +0000 Subject: [PATCH] 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 --- includes/DefaultSettings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' ), -- 2.20.1