Commit 4ff14894 authored by Jeremy's avatar Jeremy

Issue #1305696 by Jeremy: substr() expects parameter 3 to be long, string given memcache.inc

parent 0f26bf60
......@@ -369,6 +369,10 @@ class MemCacheDrupal implements DrupalCacheInterface {
static $wildcards = array();
$matching = array();
if (!is_string($cid)) {
register_shutdown_function('watchdog', 'memcache', 'Invalid cache id received in memcache.inc wildcards() of type !type.', array('!type' => gettype($cid)), WATCHDOG_ERROR);
return $matching;
}
$length = strlen($cid);
if (isset($this->wildcard_flushes[$this->bin]) && is_array($this->wildcard_flushes[$this->bin])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment