From 2ba6b03e8e420ef34365516c0e962fddc4858132 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 20 Dec 2011 04:39:12 +0000 Subject: [PATCH] * Fix class name * unset($wgMemc) doesn't actually do anything useful, it just removes the reference from the local scope. Set it to NULL instead. --- includes/ForkController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ForkController.php b/includes/ForkController.php index 7fff6aee5a..9cacef5497 100644 --- a/includes/ForkController.php +++ b/includes/ForkController.php @@ -34,7 +34,7 @@ class ForkController { public function __construct( $numProcs, $flags = 0 ) { if ( php_sapi_name() != 'cli' ) { - throw new MWException( "MultiProcess cannot be used from the web." ); + throw new MWException( "ForkController cannot be used from the web." ); } $this->procsToStart = $numProcs; $this->flags = $flags; @@ -119,7 +119,7 @@ class ForkController { // Don't share DB or memcached connections wfGetLBFactory()->destroyInstance(); ObjectCache::clear(); - unset( $wgMemc ); + $wgMemc = null; } /** -- 2.20.1