mirror of https://gitee.com/karson/fastadmin.git
php5.* opcache加载判断
parent
3fac3ae3c3
commit
c62c0dfdc2
|
|
@ -70,7 +70,7 @@ class Api extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
|
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
|
||||||
if (extension_loaded('opcache')) {
|
if (extension_loaded('Zend OPcache')) {
|
||||||
$configuration = opcache_get_configuration();
|
$configuration = opcache_get_configuration();
|
||||||
$directives = $configuration['directives'];
|
$directives = $configuration['directives'];
|
||||||
$configName = request()->isCli() ? 'opcache.enable_cli' : 'opcache.enable';
|
$configName = request()->isCli() ? 'opcache.enable_cli' : 'opcache.enable';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue