fixed 允许PHP5.4以上版本安装

This commit is contained in:
zhaoxiang 2017-02-03 14:47:32 +08:00
parent 6c8ac608ae
commit 1261735a18

View File

@ -22,7 +22,7 @@ function checkEnv(){
], ],
'php' => [ 'php' => [
'title' => 'PHP版本', 'title' => 'PHP版本',
'limit' => '5.6+', 'limit' => '5.4+',
'current' => PHP_VERSION, 'current' => PHP_VERSION,
'icon' => 'fa fa-check text-success', 'icon' => 'fa fa-check text-success',
], ],
@ -41,7 +41,7 @@ function checkEnv(){
]; ];
//PHP环境检测 //PHP环境检测
if($items['php']['current'] < 5.6){ if($items['php']['current'] < 5.4){
$items['php']['icon'] = 'fa fa-close text-danger'; $items['php']['icon'] = 'fa fa-close text-danger';
session('error', true); session('error', true);
} }