mirror of https://gitee.com/karson/fastadmin.git
修改在线安装 php 版本要求
parent
ae935d260c
commit
4fb1379afa
|
|
@ -309,8 +309,8 @@ class Install extends Command
|
||||||
//数据库配置文件
|
//数据库配置文件
|
||||||
$dbConfigFile = APP_PATH . 'database.php';
|
$dbConfigFile = APP_PATH . 'database.php';
|
||||||
|
|
||||||
if (version_compare(PHP_VERSION, '7.1.0', '<')) {
|
if (version_compare(PHP_VERSION, '7.2.0', '<')) {
|
||||||
throw new Exception(__("The current version %s is too low, please use PHP 7.1 or higher", PHP_VERSION));
|
throw new Exception(__("The current version %s is too low, please use PHP 7.2 or higher", PHP_VERSION));
|
||||||
}
|
}
|
||||||
if (!extension_loaded("PDO")) {
|
if (!extension_loaded("PDO")) {
|
||||||
throw new Exception(__("PDO is not currently installed and cannot be installed"));
|
throw new Exception(__("PDO is not currently installed and cannot be installed"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue