소스 검색

Split out function return value from being used in empty() call, making the script compatible with PHP 5.4. (#24)

Andrew Collington 8 년 전
부모
커밋
06a622d334
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      index.php

+ 2 - 1
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');
 }