Closed (fixed)
Project:
Memcache API and Integration
Version:
7.x-1.0
Component:
memcache.inc
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2012 at 12:43 UTC
Updated:
22 Feb 2013 at 14:50 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| memcached_php5_4.patch | 663 bytes | alonpeer |
Comments
Comment #1
markpavlitski commentedHi alonpeer, this is fixed in 7.x-1.x-dev.