| @@ 27-48 (lines=22) @@ | ||
| 24 | /** |
|
| 25 | * __construct() |
|
| 26 | */ |
|
| 27 | public function __construct() |
|
| 28 | { |
|
| 29 | if ( |
|
| 30 | \PHP_SAPI !== 'cli' |
|
| 31 | && |
|
| 32 | \function_exists('apc_store') === true |
|
| 33 | && |
|
| 34 | \ini_get('apc.enabled') |
|
| 35 | ) { |
|
| 36 | $this->installed = true; |
|
| 37 | } |
|
| 38 | ||
| 39 | if ( |
|
| 40 | \PHP_SAPI === 'cli' |
|
| 41 | && |
|
| 42 | \function_exists('apc_store') === true |
|
| 43 | && |
|
| 44 | \ini_get('apc.enable_cli') |
|
| 45 | ) { |
|
| 46 | $this->installed = true; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Check if apc-cache exists. |
|
| @@ 27-48 (lines=22) @@ | ||
| 24 | /** |
|
| 25 | * __construct() |
|
| 26 | */ |
|
| 27 | public function __construct() |
|
| 28 | { |
|
| 29 | if ( |
|
| 30 | \PHP_SAPI !== 'cli' |
|
| 31 | && |
|
| 32 | \function_exists('apcu_store') === true |
|
| 33 | && |
|
| 34 | \ini_get('apc.enabled') |
|
| 35 | ) { |
|
| 36 | $this->installed = true; |
|
| 37 | } |
|
| 38 | ||
| 39 | if ( |
|
| 40 | \PHP_SAPI === 'cli' |
|
| 41 | && |
|
| 42 | \function_exists('apcu_store') === true |
|
| 43 | && |
|
| 44 | \ini_get('apc.enable_cli') |
|
| 45 | ) { |
|
| 46 | $this->installed = true; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Check if apcu-cache exists. |
|