Commit 666a4601 authored by marco's avatar marco Committed by Jeremy

Issue #2376391 by Jeremy, marco: Call to undefined function lock_acquire()

parent 4e015d03
......@@ -637,14 +637,14 @@ function dmemcache_extension() {
if ($extension === NULL) {
// If an extension is specified in settings.php, use that when available.
$preferred = variable_get('memcache_extension', NULL);
if (isset($preferred) && class_exists($preferred)) {
if (isset($preferred) && class_exists($preferred, FALSE)) {
$extension = ucfirst(strtolower($preferred));
}
// If no extension is set, default to Memcache.
elseif (class_exists('Memcache')) {
elseif (class_exists('Memcache', FALSE)) {
$extension = 'Memcache';
}
elseif (class_exists('Memcached')) {
elseif (class_exists('Memcached', FALSE)) {
$extension = 'Memcached';
}
else {
......
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