[Pkg-owncloud-commits] [owncloud] 16/145: Add check for apc.enabled option
David Prévot
taffit at moszumanska.debian.org
Wed Feb 26 16:27:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit e6391d84a19924f8b9b58738bdb07c2c5ae496f0
Author: Otto Sabart <ottosabart at seberm.com>
Date: Fri Jan 24 15:52:28 2014 +0100
Add check for apc.enabled option
Sometimes it's not possible to disable APC entirely and some of
apc_functions are disabled. Only thing which is possible is
to disable apc.enable option.
---
lib/private/memcache/apc.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/private/memcache/apc.php b/lib/private/memcache/apc.php
index 575ee44..e995cbc 100644
--- a/lib/private/memcache/apc.php
+++ b/lib/private/memcache/apc.php
@@ -50,6 +50,8 @@ class APC extends Cache {
static public function isAvailable() {
if (!extension_loaded('apc')) {
return false;
+ } elseif (!ini_get('apc.enabled')) {
+ return false;
} elseif (!ini_get('apc.enable_cli') && \OC::$CLI) {
return false;
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list