ソースを参照

!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';