/**
* Constructor
* Validate that the Zend Platform is loaded and licensed
*
* @param array $options Associative array of options
* @throws Zend_Cache_Exception
* @return void
*/
public function __construct(array
$options = array
()) { if (!
function_exists('accelerator_license_info'
)) { Zend_Cache::
throwException('The Zend Platform extension must be loaded for using this backend !'
);
} if (!
function_exists('accelerator_get_configuration'
)) { $licenseInfo =
accelerator_license_info();
Zend_Cache::
throwException('The Zend Platform extension is not loaded correctly: '.
$licenseInfo['failure_reason'
]);
} $accConf =
accelerator_get_configuration();
if (@!
$accConf['output_cache_licensed'
]) { Zend_Cache::
throwException('The Zend Platform extension does not have the proper license to use content caching features'
);
} if (@!
$accConf['output_cache_enabled'
]) { Zend_Cache::
throwException('The Zend Platform content caching feature must be enabled for using this backend, set the \'zend_accelerator.output_cache_enabled\' directive to On !'
);
}