1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Check for minimum version of PHP 8.

This commit is contained in:
camer0n
2025-03-31 07:28:46 -07:00
parent 5fdf01c0ca
commit 5047731c9b

View File

@@ -56,6 +56,14 @@ if(isset($_E107['cli'], $_SERVER["HTTP_USER_AGENT"]) && !isset($_E107['debug']))
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)
{
echo "e107 requires the PHP <a href='http://php.net/manual/en/dom.setup.php'>XML</a> package. Please install it to use e107. ";