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

CommentFileSizeAuthor
#1 e_strict.patch782 bytescatch

Comments

catch’s picture

Title: PHP errors on certain php versions » E_STRICT warning in cache_get()
Version: 6.x-1.9 » 7.x-1.x-dev
Status: Active » Patch (to be ported)
StatusFileSize
new782 bytes

Argghh, 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.

catch’s picture

Status: Patch (to be ported) » Fixed

This code doesn't exist in D7, marking fixed.

Status: Fixed » Closed (fixed)

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