From a6999018e5be979213f4932fb111548182c8a65b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 21 Sep 2011 20:25:58 +0000 Subject: [PATCH] Added lock/unlock function stubs. Fixes: PHP fatal error in /usr/local/apache/common-local/php-1.18/includes/objectcache/MemcachedPhpBagOStuff.php line 91: Call to undefined method MemCachedClientforWiki::lock() --- includes/objectcache/MemcachedClient.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/objectcache/MemcachedClient.php b/includes/objectcache/MemcachedClient.php index 51d312ff42..dd4401a894 100644 --- a/includes/objectcache/MemcachedClient.php +++ b/includes/objectcache/MemcachedClient.php @@ -344,6 +344,16 @@ class MWMemcached { return false; } + public function lock( $key, $timeout = 0 ) { + /* stub */ + return true; + } + + public function unlock( $key ) { + /* stub */ + return true; + } + // }}} // {{{ disconnect_all() -- 2.20.1