Commit fc392dbf authored by Eduardo Alvarez's avatar Eduardo Alvarez Committed by Jeremy

Issue #2415109 by Eduardo Alvarez, Jeremy: Notice: unserialize(): Error at...

Issue #2415109 by Eduardo Alvarez, Jeremy: Notice: unserialize(): Error at offset in _dmemcache_get_pieces()
parent 87f2fa33
......@@ -405,6 +405,10 @@ function dmemcache_get_multi($keys, $bin = 'cache', $mc = NULL) {
$results = @$mc->get($full_keys);
// Order is not guaranteed, map responses to order of requests.
$keys = array_fill_keys($full_keys, NULL);
$results = array_merge($keys, $results);
if (!empty($php_errormsg)) {
register_shutdown_function('watchdog', 'memcache', 'Exception caught in dmemcache_get_multi: !msg', array('!msg' => $php_errormsg), WATCHDOG_WARNING);
$php_errormsg = '';
......
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