Skip to content

Commit 67da4a1

Browse files
author
Jeremy Andrews
committed
Issue #1305696 by Jeremy: Invalid cache id received in memcache.inc wildcards() of type integer
1 parent 0634fc4 commit 67da4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memcache.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class MemCacheDrupal implements DrupalCacheInterface {
380380
static $wildcards = array();
381381
$matching = array();
382382

383-
if (!is_string($cid)) {
383+
if (!is_string($cid) && !is_int($cid)) {
384384
register_shutdown_function('watchdog', 'memcache', 'Invalid cache id received in memcache.inc wildcards() of type !type.', array('!type' => gettype($cid)), WATCHDOG_ERROR);
385385
return $matching;
386386
}

0 commit comments

Comments
 (0)