Skip to content

Commit

Permalink
ENGCOM-9347: Fix incorrect php version check in bootstrap #34706
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Jan 31, 2022
2 parents 5392538 + 7019462 commit 256a48b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
#ini_set('display_errors', 1);

/* PHP version validation */
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 70300) {
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 70400) {
if (PHP_SAPI == 'cli') {
echo 'Magento supports PHP 7.3.0 or later. ' .
echo 'Magento supports PHP 7.4.0 or later. ' .
'Please read https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements-tech.html';
} else {
echo <<<HTML
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<p>Magento supports PHP 7.3.0 or later. Please read
<p>Magento supports PHP 7.4.0 or later. Please read
<a target="_blank" href="https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements-tech.html">
Magento System Requirements</a>.
</div>
Expand Down

0 comments on commit 256a48b

Please sign in to comment.