* Fix class name
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 20 Dec 2011 04:39:12 +0000 (04:39 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 20 Dec 2011 04:39:12 +0000 (04:39 +0000)
* 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

index 7fff6ae..9cacef5 100644 (file)
@@ -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;
        }
 
        /**