Merge pull request #225 from diolektor/check-version-php-dev

Fixed compare version PHP
This commit is contained in:
Yuriy Pikhtarev 2017-04-07 00:49:53 +03:00 committed by GitHub
commit ec1f623e39

View file

@ -33,7 +33,7 @@ if (!defined('BB_CFG_LOADED')) {
trigger_error('File config.php not loaded', E_USER_ERROR);
}
if (PHP_VERSION < '7.0.8') {
if (version_compare(PHP_VERSION, '7.0.8', '>')) {
die('TorrentPier requires PHP version 7.0.8 and above (used code and packages requirement). Your PHP version is ' . PHP_VERSION);
}