I have both memcache and memcached extensions enabled:

memcache:
===========================
memcache support enabled
Active persistent connections 0
Version 2.2.4
Revision $Revision: 1.104 $
Directive Local Value Master Value
memcache.allow_failover 1 1
memcache.chunk_size 8192 8192
memcache.default_port 11211 11211
memcache.hash_function crc32 crc32
memcache.hash_strategy standard standard
memcache.max_failover_attempts 20 20

memcached:
==============
memcached support enabled
Version 1.0.2
libmemcached version 0.42
Session support yes
igbinary support no

When browsing to Administer -> Reports -> Memcache status, the page fails with: Call to undefined method Memcached::getExtendedStats(). This is because the Memcached PECL extension doesn't have that function available as per http://php.net/manual/en/book.memcached.php.

The attached patch checks if it's using Memcache or Memcached and calls getStats() instead of getExtendedStats().

Comments

Nathan Goulding’s picture

StatusFileSize
new834 bytes

Seems my attachment didn't post for some reason.

EDIT: BAD PATCH.

Nathan Goulding’s picture

StatusFileSize
new859 bytes

Here's the right patch...

whytewolf’s picture

i had issues with the patch, something about being malformed on line 15. however once i hand patched in the changes work fine for me.

srjosh’s picture

StatusFileSize
new867 bytes

I had the same malformed issue; rerolled the patch and it worked ok for me.

arnold_mad’s picture

when will this be included in latest dev version ?

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Bug confirmed when using memcached extension, patch in #4 works for me.

robertdouglass’s picture

Status: Reviewed & tested by the community » Fixed

#856276 by nycnate, srjosh | whytewolf: Fixed Call to undefined method Memcached::getExtendedStats().

Thanks! Committed to D6 and D7.

Status: Fixed » Closed (fixed)

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