I ran into the following php error after the update from 1.8 to 1.9
[type] => 2048
[message] => Only variables should be passed by reference
[file] => /home/tcnetwork/public_html/sites/all/modules/memcache/memcache.inc
[line] => 319
I found out it seems to be due to a combination of php functions stringed together. As soon as you break them up the error dissappears. Fixed it by doing this:
$tmp = array_keys($wildcard_flushes[$table]);
$wildcard_length = strlen(reset($tmp));
php version 5.2.13-0.dotdeb.1
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | e_strict.patch | 782 bytes | catch |
Comments
Comment #1
catchArgghh, this is an E_STRICT warning, looks like my dev box was set to E_ALL so didn't catch this, thanks for reporting!
Committed a slightly modified version of the patch with http://drupalcode.org/project/memcache.git/commit/62984d4
This will need to be synced with 7.x there, so moving it over to be ported.
Comment #2
catchThis code doesn't exist in D7, marking fixed.