Running with PHP 5.4 and Memcached extension, calling dmemcache_get_multi() produces the error message:
"Fatal error: Cannot pass parameter 2 by reference"

This happens because of:

  // Line 138
  $results = $mc->getMulti($full_keys,NULL,NULL);

The second parameter of getMulti() is passed by reference, so you can't pass NULL.

Attached is a patch that fixes it by not sending parameters 2+3 at all, since the module doesn't use the CAS tokens feature.

CommentFileSizeAuthor
memcached_php5_4.patch663 bytesalonpeer

Comments

markpavlitski’s picture

Status: Needs work » Fixed

Hi alonpeer, this is fixed in 7.x-1.x-dev.

Status: Fixed » Closed (fixed)

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