mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Check PHP version using integer constant to be more efficient
This commit is contained in:
parent
e1a3961973
commit
8c879da8f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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.';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue