修改php兼容版本

This commit is contained in:
liaofei 2023-02-13 09:56:09 +08:00
parent 31438f6643
commit 23c7666986
3 changed files with 5 additions and 12 deletions

View File

@ -12,13 +12,6 @@
// [ 应用入口文件 ]
namespace think;
if ('7.2.0' >= phpversion()) {
exit('您的php版本过低,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
}
if (phpversion() > 8.0) {
exit('您的php版本太高,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
}
define('DS', DIRECTORY_SEPARATOR);
//检测是否已安装CRMEB系统

View File

@ -2,7 +2,7 @@
//文件签名
$fileValue = '';
//最低php版本要求
define('PHP_EDITION', '7.2.0');
define('PHP_EDITION', '7.1.0');
//服务环境检测
if (function_exists('saeAutoLoader') || isset($_SERVER['HTTP_BAE_ENV_APPID'])) {
showHtml('对不起,当前环境不支持本系统,请使用独立服务或云主机!');
@ -18,10 +18,10 @@ if (file_exists('../install.lock')) {
@set_time_limit(1000);
if (PHP_EDITION >= phpversion()) {
showHtml('您的php版本过低,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
showHtml('您的php版本过低,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
}
if (phpversion() > 8.0) {
showHtml('您的php版本太高,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
showHtml('您的php版本太高,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
}
date_default_timezone_set('PRC');

View File

@ -4,8 +4,8 @@
$issues = array();
if (!(PHP_VERSION_ID >= 70200)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 70100)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.';
}
if ($issues) {