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
 - Merge Pull Request #34706 from ihor-sviziev/magento2:fix-incorrect-php-version-check
 - Merged commits:
   1. 4a8b49c
  • Loading branch information
magento-engcom-team committed Jan 6, 2022
2 parents 302f6c5 + 4a8b49c commit 7019462
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 7019462

Please sign in to comment.