diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-03-24 19:48:35 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-03-24 19:48:35 +0100 |
commit | e938c90f9e6bf576b5e4cf31511589c59f621a31 (patch) | |
tree | 7a8cf5a688d896b7cda256c083fe58dfabc031b5 /glpi-0.90-zf25.patch | |
parent | 183fcddc8d4fe51092370b0902810dd4a0b42968 (diff) |
glpi: add upstream patch to fix compatibility with ZF 2.5 + recommend APCu
Diffstat (limited to 'glpi-0.90-zf25.patch')
-rw-r--r-- | glpi-0.90-zf25.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/glpi-0.90-zf25.patch b/glpi-0.90-zf25.patch new file mode 100644 index 0000000..0a16f81 --- /dev/null +++ b/glpi-0.90-zf25.patch @@ -0,0 +1,26 @@ +From dc5faa994b3103d7740e88c5de79969f6e58a237 Mon Sep 17 00:00:00 2001 +From: Remi Collet <fedora@famillecollet.com> +Date: Thu, 24 Mar 2016 19:21:05 +0100 +Subject: [PATCH] Fix compat with ZF 2.5 + +2.4: Zend\Cache\Exception\ExtensionNotLoadedException +2.5: Zend\ServiceManager\Exception\ServiceNotCreatedException + +(cherry picked from commit 9474d5743122d4b1fc3bd5965d0eb798a93ad668) +--- + inc/session.class.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/inc/session.class.php b/inc/session.class.php +index f5deef5..dd572d7 100644 +--- a/inc/session.class.php ++++ b/inc/session.class.php +@@ -578,7 +578,7 @@ static function loadLanguage($forcelang='') { + try { + $cache = Zend\Cache\StorageFactory::factory(array('adapter' => 'apc')); + $TRANSLATE->setCache($cache); +- } catch (Zend\Cache\Exception\ExtensionNotLoadedException $e) { ++ } catch (Exception $e) { + // ignore when APC not available + // toolbox::logDebug($e->getMessage()); + } |