Commit 35e47785 authored by Jeremy's avatar Jeremy

Issue #2376391: Call to undefined function lock_acquire()

parent 63610e49
......@@ -479,6 +479,12 @@ class MemCacheDrupal implements DrupalCacheInterface {
drupal_bootstrap(DRUPAL_BOOTSTRAP_VARIABLES, FALSE);
}
if (!function_exists('lock_acquire')) {
// Bootstrap failed, log error.
register_shutdown_function('watchdog', 'memcache', 'Bootstrap failed in lockInit(), lock_acquire() is not available. (phase:!phase)', array('!phase' => drupal_get_bootstrap_phase()), WATCHDOG_ERROR);
return FALSE;
}
return TRUE;
}
......
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