From 4b69eb36b7ad6bb9b8f1ae0b3216f862a4f63b6f Mon Sep 17 00:00:00 2001 From: tianya <8445295+llgoer@user.noreply.gitee.com> Date: Mon, 2 May 2022 23:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=8E=E7=89=88=E6=9C=ACPHP=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/index_testenv.php | 3 +++ src/install/index.php | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/admin/index_testenv.php b/src/admin/index_testenv.php index e72c401c..71e1930d 100644 --- a/src/admin/index_testenv.php +++ b/src/admin/index_testenv.php @@ -131,6 +131,9 @@ if (IsWritable(DEDEDATA.'/common.inc.php')) { if (!IsSSL()) { $safeMsg[] = '当前站点尚未启用HTTPS,强烈建议您启用'; } +if (version_compare(PHP_VERSION, '5.3.0', '<')) { + $safeMsg[] = "PHP请升级到5.3及以上版本,低版本PHP环境将无法正常使用本系统"; +} $rs = TestAdminPWD(); if ($rs < 0) { $linkurl = "修改"; diff --git a/src/install/index.php b/src/install/index.php index 079001b3..c68dcd68 100644 --- a/src/install/index.php +++ b/src/install/index.php @@ -11,7 +11,7 @@ error_reporting(E_ALL || ~E_NOTICE); define('INSLOCKFILE', dirname(__FILE__).'/install_lock.txt'); if(file_exists(INSLOCKFILE)) { - exit("程序已运行安装,如果您确定要重新安装,请先删除 /install/install_lock.txt"); + die("
程序已运行安装,如果您确定要重新安装,请先删除 /install/install_lock.txt
\r\n"); } $verMsg = 'V6'; $dfDbname = 'DedeBIZ'; @@ -43,6 +43,9 @@ function _1_Agreement() if($step==1) { $arrMsg = array(); + if (version_compare(PHP_VERSION, '5.3.0', '<')) { + $arrMsg[] = "PHP请升级到5.3及以上版本,低版本PHP环境将无法正常使用本系统"; + } if (!extension_loaded("openssl")) { $arrMsg[] = "OpenSSL未开启,将无法完成DedeBIZ商业支持"; }