From: Niklas Laxström Date: Wed, 23 Apr 2014 14:18:24 +0000 (+0000) Subject: Don't die on empty keys in MWMemcached X-Git-Tag: 1.31.0-rc.0~15466^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=cc0a51fd393295d49e32a823709555c171d5efc9;p=lhc%2Fweb%2Fwiklou.git Don't die on empty keys in MWMemcached Bug: 64287 Change-Id: Iedfec96286212577a181b83957cdc4545be206d2 --- diff --git a/includes/objectcache/MemcachedClient.php b/includes/objectcache/MemcachedClient.php index 9de840b62c..7990053de3 100644 --- a/includes/objectcache/MemcachedClient.php +++ b/includes/objectcache/MemcachedClient.php @@ -419,6 +419,12 @@ class MWMemcached { $this->_debugprint( "get($key)\n" ); } + if ( !is_array( $key ) && strval( $key ) === '' ) { + $this->_debugprint( "Skipping key which equals to an empty string" ); + wfProfileOut( __METHOD__ ); + return false; + } + if ( !$this->_active ) { wfProfileOut( __METHOD__ ); return false;