function _memcache_version_valid in Memcache API and Integration 6
Validate whether the current PECL version is supported.
2 calls to _memcache_version_valid()
- memcache_enable in ./
memcache.install - Implements hook_enable().
- memcache_requirements in ./
memcache.install - Implements hook_requirements().
File
- ./
memcache.install, line 189 - Install, update and uninstall functions for the memcache module.
Code
function _memcache_version_valid() {
$extension = dmemcache_extension();
if ($extension == 'Memcache') {
return version_compare(phpversion('memcache'), MEMCACHE_PECL_RECOMMENDED, '>=');
}
elseif ($extension == 'Memcached') {
return version_compare(phpversion('memcached'), MEMCACHED_PECL_RECOMMENDED, '>=');
}
}