Check PHP version in common/autoload.php

This commit is contained in:
Kijin Sung 2022-12-23 02:04:25 +09:00
parent 1c10981113
commit 28323f1bb8

View file

@ -8,6 +8,16 @@ if (defined('RX_VERSION'))
return;
}
/**
* Check PHP version.
*/
if (version_compare(PHP_VERSION, '7.2', '<'))
{
header('HTTP/1.1 500 Internal Server Error');
echo 'Rhymix requires PHP 7.2 or higher.';
exit(1);
}
/**
* Set error reporting rules.
*/