From 8c879da8f8301ce13cd0ecb91f92dc2cdef9f738 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 31 Jan 2023 00:01:06 +0900 Subject: [PATCH] Check PHP version using integer constant to be more efficient --- common/autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/autoload.php b/common/autoload.php index 6838590e5..aa22f0861 100644 --- a/common/autoload.php +++ b/common/autoload.php @@ -11,7 +11,7 @@ if (defined('RX_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'); echo 'Rhymix requires PHP 7.2.5 or higher.';