mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Check for minimum version of PHP 8.
This commit is contained in:
@@ -56,6 +56,14 @@ if(isset($_E107['cli'], $_SERVER["HTTP_USER_AGENT"]) && !isset($_E107['debug']))
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (PHP_MAJOR_VERSION < 8)
|
||||||
|
{
|
||||||
|
echo "Configuration Error. Check error log for details.";
|
||||||
|
error_log('PHP 8 or higher is required. Current version: ' . PHP_VERSION);
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(function_exists('utf8_encode') === false)
|
if(function_exists('utf8_encode') === false)
|
||||||
{
|
{
|
||||||
echo "e107 requires the PHP <a href='http://php.net/manual/en/dom.setup.php'>XML</a> package. Please install it to use e107. ";
|
echo "e107 requires the PHP <a href='http://php.net/manual/en/dom.setup.php'>XML</a> package. Please install it to use e107. ";
|
||||||
|
Reference in New Issue
Block a user