Beispiel #1
0
 /**
  * Find out if APC is enabled
  *
  * @return bool
  */
 public static function isAPCEnabled()
 {
     if (self::$isAPCEnabled === null) {
         $keySuffix = PHP_SAPI == 'cli' ? '_cli' : '';
         $isEnabled = (bool) ini_get('apc.enabled' . $keySuffix);
         self::$isAPCEnabled = $isEnabled;
     }
     return self::$isAPCEnabled;
 }