正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
application/admin/command/Api.php
100755 → 100644
@@ -70,7 +70,7 @@ class Api extends Command | @@ -70,7 +70,7 @@ class Api extends Command | ||
70 | } | 70 | } |
71 | 71 | ||
72 | if (version_compare(PHP_VERSION, '7.0.0', '<')) { | 72 | if (version_compare(PHP_VERSION, '7.0.0', '<')) { |
73 | - if (extension_loaded('opcache')) { | 73 | + if (extension_loaded('Zend OPcache')) { |
74 | $configuration = opcache_get_configuration(); | 74 | $configuration = opcache_get_configuration(); |
75 | $directives = $configuration['directives']; | 75 | $directives = $configuration['directives']; |
76 | $configName = request()->isCli() ? 'opcache.enable_cli' : 'opcache.enable'; | 76 | $configName = request()->isCli() ? 'opcache.enable_cli' : 'opcache.enable'; |
-
请 注册 或 登录 后发表评论