The cache_consistent module uses array_combine even when the conbined arrays are empty. This does not work in PHP 5.3.

cache_consistent.lookup.inc:306

 $cids = array_combine(array_keys($return), array_keys($return));
 if ($fetch_cids) {
   $return += $this->backend->getMultiple($fetch_cids);
 }
 $cids += array_combine($fetch_cids, $fetch_cids);

Comments

mian3010’s picture

Issue summary: View changes
mian3010’s picture

StatusFileSize
new828 bytes

Attached patch with proposed solution.

gielfeldt’s picture

Patch is broken. If $return is empty, then backend->getMultiple() is never called. Also, patch only adresses the ConsistentCacheLookup. The ConsistentCache class is missing.

Also. PHP 5.3. Meh.

  • gielfeldt committed 6758d60 on 7.x-1.x
    Issue #2488016: Fix PHP 5.3 compatibility.
    

gielfeldt’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.