浏览代码

!59 php5.* opcache扩展判断
Merge pull request !59 from 大饼博士/master

大饼博士 7 年之前
父节点
当前提交
0d78f12ac0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/admin/command/Api.php

+ 1 - 1
application/admin/command/Api.php

@@ -70,7 +70,7 @@ class Api extends Command
         }
 
         if (version_compare(PHP_VERSION, '7.0.0', '<')) {
-            if (extension_loaded('opcache')) {
+            if (extension_loaded('Zend OPcache')) {
                 $configuration = opcache_get_configuration();
                 $directives = $configuration['directives'];
                 $configName = request()->isCli() ? 'opcache.enable_cli' : 'opcache.enable';