示例#1
0
 /**
  * 
  * Checks to make sure the EAccelerator extension is available.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     if (!(extension_loaded('eaccelerator') && ini_get('eaccelerator.enable'))) {
         throw $this->_exception('ERR_EXTENSION_NOT_LOADED', array('extension' => 'eaccelerator'));
     }
 }
示例#2
0
 /**
  * 
  * Checks to make sure the memcache extension is available.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     if (!extension_loaded('memcache')) {
         throw $this->_exception('ERR_EXTENSION_NOT_LOADED', array('extension' => 'memcache'));
     }
 }
示例#3
0
文件: File.php 项目: kalkin/solarphp
 /**
  * 
  * Sets the default cache directory location.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     $tmp = Solar_Dir::tmp('/Solar_Cache_File/');
     $this->_Solar_Cache_Adapter_File['path'] = $tmp;
 }