We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1079d commit 40e415aCopy full SHA for 40e415a
src/Symfony/Component/Cache/Traits/ApcuTrait.php
@@ -23,7 +23,7 @@ trait ApcuTrait
23
{
24
public static function isSupported()
25
26
- return function_exists('apcu_fetch') && ini_get('apc.enabled');
+ return function_exists('apcu_fetch') && ini_get('cli' === PHP_SAPI ? 'apc.enable_cli' : 'apc.enabled');
27
}
28
29
private function init($namespace, $defaultLifetime, $version)
0 commit comments