From 5047731c9bbcf5994d77fccac451b5a77c743869 Mon Sep 17 00:00:00 2001 From: camer0n Date: Mon, 31 Mar 2025 07:28:46 -0700 Subject: [PATCH] Check for minimum version of PHP 8. --- class2.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/class2.php b/class2.php index aa951f605..69b815a61 100755 --- a/class2.php +++ b/class2.php @@ -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 XML package. Please install it to use e107. ";