Update PHP version checks for PHP 8.4.11 compatibility

Co-authored-by: magicbug <84308+magicbug@users.noreply.github.com>
这个提交包含在:
copilot-swe-agent[bot] 2025-08-25 14:56:10 +00:00
父节点 ee13270045
当前提交 a7ae567ab7
共有 2 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -160,7 +160,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc)
<div class="container dashboard">
<?php if (($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
<?php if (version_compare(PHP_VERSION, '7.4.0') <= 0) { ?>
<?php if (version_compare(PHP_VERSION, '8.0.0') < 0) { ?>
<div class="alert alert-danger" role="alert">
<?php echo lang('dashboard_php_version_warning') . ' ' . PHP_VERSION . '.'; ?>
</div>

查看文件

@ -74,7 +74,7 @@ switch (ENVIRONMENT)
case 'testing':
case 'production':
ini_set('display_errors', 0);
if (version_compare(PHP_VERSION, '5.3', '>='))
if (version_compare(PHP_VERSION, '7.0', '>='))
{
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
}