Check PHP version using integer constant to be more efficient

This commit is contained in:
Kijin Sung 2023-01-31 00:01:06 +09:00
parent e1a3961973
commit 8c879da8f8

View file

@ -11,7 +11,7 @@ if (defined('RX_VERSION'))
/** /**
* Check PHP version. * Check PHP version.
*/ */
if (version_compare(PHP_VERSION, '7.2.5', '<')) if (PHP_VERSION_ID < 70205)
{ {
header('HTTP/1.1 500 Internal Server Error'); header('HTTP/1.1 500 Internal Server Error');
echo 'Rhymix requires PHP 7.2.5 or higher.'; echo 'Rhymix requires PHP 7.2.5 or higher.';