Notice: Undefined property: stdClass::$expire in /XXX/sites/all/modules/memcache/dmemcache.inc on line 74

if ($result->expire && .....

should be

if (isset($result->expire) && .....

to avoid the warning

Comments

febbraro’s picture

Also, I only get this "notice" when I use session_inc. Using cache_inc does not generate this notice.

j4h8’s picture

Same here. Bug remains in 6.x-1.4-rc1.

Regards,
Jutta

febbraro’s picture

Version: 6.x-1.3 » 6.x-1.4-rc1
Status: Active » Needs review
StatusFileSize
new749 bytes

Here is a patch to fix it.

damienmckenna’s picture

Works for me.

damienmckenna’s picture

Ran into a problem.. the current solution doesn't account for when $result->expire == CACHE_PERMANENT.

damienmckenna’s picture

StatusFileSize
new997 bytes

Please give this a spin.

febbraro’s picture

Shouldn't you use

$result->expire !== CACHE_PERMANENT

instead of

$result->expire !== 0
jcmarco’s picture

Version: 6.x-1.4-rc1 » 6.x-1.4
StatusFileSize
new802 bytes

Tested and working fine,
with patch #6 plus #7

jeremy’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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