contributions/cache.memcache/install/check_preconditions.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Check if memcache or memcached are installed 00004 */ 00005 function cache_memcache_check_preconditions() { 00006 $ret = new Status(); 00007 if (!class_exists('Memcache') && !class_exists('Memcached')) { 00008 $ret->append('Memcache or Memcached are not installed, please install the according PECL extensions: http://pecl.php.net/package/memcached, http://pecl.php.net/package/memcache'); 00009 } 00010 return $ret; 00011 }