8000 BUGFIX check for apc.enable_cli if PHP_SAPI==cli · symfony/symfony@40e415a · GitHub
[go: up one dir, main page]

Skip to content

Commit 40e415a

Browse files
committed
BUGFIX check for apc.enable_cli if PHP_SAPI==cli
1 parent 1a1079d commit 40e415a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Traits/ApcuTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ trait ApcuTrait
2323
{
2424
public static function isSupported()
2525
{
26-
return function_exists('apcu_fetch') && ini_get('apc.enabled');
26+
return function_exists('apcu_fetch') && ini_get('cli' === PHP_SAPI ? 'apc.enable_cli' : 'apc.enabled');
2727
}
2828

2929
private function init($namespace, $defaultLifetime, $version)

0 commit comments

Comments
 (0)
0