From 9acc75ac12a0b183f0918146a90325f8e28e8002 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Tue, 22 Sep 2015 14:22:36 +0200
Subject: [PATCH] Test if Zend OPCache is installed

---
 htdocs/admin/system/perf.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/htdocs/admin/system/perf.php b/htdocs/admin/system/perf.php
index b53c666f2af..a5865b29eac 100644
--- a/htdocs/admin/system/perf.php
+++ b/htdocs/admin/system/perf.php
@@ -108,6 +108,14 @@ if (! $foundcache && $test)
 	$foundcache++;
 	print img_picto('','tick.png').' '.$langs->trans("EAcceleratorInstalled");
 }
+$test=function_exists('opcache_get_status');
+if (! $foundcache && $test)
+{
+	$foundcache++;
+	print img_picto('','tick.png').' '.$langs->trans("ZendOPCacheInstalled");  // Should be by defautl starting with PHP 5.5
+	//$tmp=opcache_get_status();
+	//var_dump($tmp);
+}
 $test=function_exists('apc_cache_info');
 if (! $foundcache && $test)
 {
-- 
GitLab