diff --git a/api.php b/api.php index bccd0ccada3..e0f86572d6f 100644 --- a/api.php +++ b/api.php @@ -19,11 +19,6 @@ * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ -if (version_compare(phpversion(), '7.3.0', '<') === true) { - echo 'It looks like you have an invalid PHP version. OpenMage supports PHP 7.3.0 or newer'; - exit; -} - $magentoRootDir = getcwd(); $bootstrapFilename = $magentoRootDir . '/app/bootstrap.php'; $mageFilename = $magentoRootDir . '/app/Mage.php'; diff --git a/get.php b/get.php index 5a8c332be16..fa882105809 100644 --- a/get.php +++ b/get.php @@ -18,15 +18,7 @@ * @copyright Copyright (c) 2016-2022 The OpenMage Contributors (https://www.openmage.org) * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ -if (version_compare(phpversion(), '7.3.0', '<') === true) { - echo '

Whoops, it looks like you have an invalid PHP version.' - . '

OpenMage supports PHP 7.3.0 or newer. Find out how to install OpenMage using PHP-CGI as a work-around.

'; - exit; -} $start = microtime(true); /** * Error reporting diff --git a/index.php b/index.php index 033338ba1ab..9a92a906174 100644 --- a/index.php +++ b/index.php @@ -19,16 +19,6 @@ * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ -if (version_compare(phpversion(), '7.3.0', '<') === true) { - echo '
-
-

-Whoops, it looks like you have an invalid PHP version.

OpenMage supports PHP 7.3.0 or newer. -Find out how to install - OpenMage using PHP-CGI as a work-around.

'; - exit; -} - define('MAGENTO_ROOT', getcwd()); $mageFilename = MAGENTO_ROOT . '/app/Mage.php'; diff --git a/install.php b/install.php index 4cccd8b8c60..4f21581f2a3 100644 --- a/install.php +++ b/install.php @@ -113,9 +113,6 @@ * */ -if (version_compare(phpversion(), '7.3.0', '<') === true) { - die('ERROR: Whoops, it looks like you have an invalid PHP version. OpenMage supports PHP 7.3.0 or newer.'); -} set_include_path(__DIR__ . PATH_SEPARATOR . get_include_path()); require 'app/bootstrap.php'; require 'app/Mage.php';