From: Aaron Schulz Date: Wed, 21 Sep 2011 20:25:58 +0000 (+0000) Subject: Added lock/unlock function stubs. Fixes: X-Git-Tag: 1.31.0-rc.0~27497 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=a6999018e5be979213f4932fb111548182c8a65b;p=lhc%2Fweb%2Fwiklou.git 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() --- 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()