mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-24 14:04:07 +08:00
use version_compare() to check PHP version
This commit is contained in:
parent
6cef94924e
commit
3d3b2541dc
@ -20,7 +20,7 @@ class Config
|
||||
|
||||
public static function checkPHPVersion()
|
||||
{
|
||||
if (strnatcasecmp(phpversion(), '5.5.9') < 0)
|
||||
if (version_compare(PHP_VERSION, '5.5.9', '<'))
|
||||
throw new E('Blessing Skin Server v3 要求 PHP 版本不低于 5.5.9,当前版本为 '.phpversion(), -1, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user