diff --git a/common/autoload.php b/common/autoload.php index 9ce12432d..35123d5cd 100644 --- a/common/autoload.php +++ b/common/autoload.php @@ -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. */