Skip to content

Commit 8f9af9e

Browse files
justinbeatyfballiano
authored andcommitted
Removed PHP version check from api.php, get.php, index.php, install.php (#2986)
1 parent 5841aba commit 8f9af9e

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

api.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
2020
*/
2121

22-
if (version_compare(phpversion(), '7.3.0', '<') === true) {
23-
echo 'It looks like you have an invalid PHP version. OpenMage supports PHP 7.3.0 or newer';
24-
exit;
25-
}
26-
2722
$magentoRootDir = getcwd();
2823
$bootstrapFilename = $magentoRootDir . '/app/bootstrap.php';
2924
$mageFilename = $magentoRootDir . '/app/Mage.php';

get.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@
1818
* @copyright Copyright (c) 2016-2022 The OpenMage Contributors (https://www.openmage.org)
1919
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
2020
*/
21-
if (version_compare(phpversion(), '7.3.0', '<') === true) {
22-
echo '<div style="font:12px/1.35em arial, helvetica, sans-serif;"><div style="margin:0 0 25px 0; '
23-
. 'border-bottom:1px solid #ccc;"><h3 style="margin:0; font-size:1.7em; font-weight:normal; '
24-
. 'text-transform:none; text-align:left; color:#2f2f2f;">Whoops, it looks like you have an invalid PHP version.'
2521

26-
. '</h3></div><p>OpenMage supports PHP 7.3.0 or newer. <a href="https://www.openmage.org/magento-lts/install.html" '
27-
. 'target="">Find out</a> how to install</a> OpenMage using PHP-CGI as a work-around.</p></div>';
28-
exit;
29-
}
3022
$start = microtime(true);
3123
/**
3224
* Error reporting

index.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
2020
*/
2121

22-
if (version_compare(phpversion(), '7.3.0', '<') === true) {
23-
echo '<div style="font:12px/1.35em arial, helvetica, sans-serif;">
24-
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
25-
<h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">
26-
Whoops, it looks like you have an invalid PHP version.</h3></div><p>OpenMage supports PHP 7.3.0 or newer.
27-
<a href="https://www.openmage.org/magento-lts/install.html" target="">Find out</a> how to install</a>
28-
OpenMage using PHP-CGI as a work-around.</p></div>';
29-
exit;
30-
}
31-
3222
define('MAGENTO_ROOT', getcwd());
3323

3424
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';

install.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@
113113
*
114114
*/
115115

116-
if (version_compare(phpversion(), '7.3.0', '<') === true) {
117-
die('ERROR: Whoops, it looks like you have an invalid PHP version. OpenMage supports PHP 7.3.0 or newer.');
118-
}
119116
set_include_path(__DIR__ . PATH_SEPARATOR . get_include_path());
120117
require 'app/bootstrap.php';
121118
require 'app/Mage.php';

0 commit comments

Comments
 (0)