!59 php5.* opcache扩展判断

Merge pull request !59 from 大饼博士/master
pull/762756/MERGE
大饼博士 2018-05-13 15:55:03 +08:00 committed by Karson
commit 0d78f12ac0
1 changed files with 1 additions and 1 deletions

2
application/admin/command/Api.php 100755 → 100644
View File

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