mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Check PHP version in common/autoload.php
This commit is contained in:
parent
1c10981113
commit
28323f1bb8
1 changed files with 10 additions and 0 deletions
|
|
@ -8,6 +8,16 @@ if (defined('RX_VERSION'))
|
||||||
return;
|
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.
|
* Set error reporting rules.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue