[BUGFIX] Warning in Install Tool if APC is installed but not enabled 93/25493/3
authorMarkus Klein <klein.t3@mfc-linz.at>
Mon, 18 Nov 2013 22:38:12 +0000 (23:38 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 18 Nov 2013 22:44:39 +0000 (23:44 +0100)
Resolves: #53748
Releases: 6.2
Change-Id: I22a2b60871639075dc108946bbaeae3730fc7085
Reviewed-on: https://review.typo3.org/25493
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/install/Classes/Configuration/ExtbaseObjectCache/ApcPreset.php

index 3550f04..b301460 100644 (file)
@@ -59,7 +59,7 @@ class ApcPreset extends Configuration\AbstractPreset {
        public function isAvailable() {
                $result = FALSE;
                if (extension_loaded('apc')) {
-                       $memoryInfo = apc_sma_info();
+                       $memoryInfo = @apc_sma_info();
                        $totalMemory = $memoryInfo['num_seg'] * $memoryInfo['seg_size'];
                        $availableMemory = $memoryInfo['avail_mem'];