Commit eb0424fa authored by robertDouglass's avatar robertDouglass
Browse files

#856276 by nycnate, srjosh | whytewolf: Fixed Call to undefined method...

#856276 by nycnate, srjosh | whytewolf: Fixed Call to undefined method Memcached::getExtendedStats().
parent 438e39dd
......@@ -195,10 +195,20 @@ function dmemcache_stats($bin = 'cache', $type = '') {
// If $type is 'default', then no parameter should be passed to the
// Memcache memcache_get_extended_stats() function.
if ($type == 'default' || $type == '') {
return memcache_getExtendedStats($mc);
if (class_exists('Memcached')) {
return $mc->getStats();
}
else if (class_exists('Memcache')) {
return $mc->getExtendedStats();
}
}
else {
return memcache_getExtendedStats($mc, $type);
if (class_exists('Memcached')) {
return $mc->getStats();
}
else if (class_exists('Memcache')) {
return $mc->getExtendedStats($type);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment