From 06a622d334f222a49c67d9152cec63a3fd954cef Mon Sep 17 00:00:00 2001 From: Andrew Collington Date: Wed, 7 Jun 2017 11:59:24 +0100 Subject: [PATCH] Split out function return value from being used in empty() call, making the script compatible with PHP 5.4. (#24) --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index a0743b8..b8ea027 100644 --- a/index.php +++ b/index.php @@ -38,7 +38,8 @@ if (!extension_loaded('Zend OPcache')) { die('The Zend OPcache extension does not appear to be installed'); } -if (empty(ini_get('opcache.enable'))) { +$ocEnabled = ini_get('opcache.enable'); +if (empty($ocEnabled)) { die('The Zend OPcache extension is installed but not turned on'); }