Skip to content

Commit

Permalink
Exit when checking the PHP version for versions prior to 5.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
unfunco committed Mar 16, 2016
1 parent 24432b3 commit 687c540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
umask(0);

/* PHP version validation */
if (PHP_VERSION_ID < 50500) {
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50500) {
if (PHP_SAPI == 'cli') {
echo 'Magento supports PHP 5.5.0 or later. ' .
'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html';
Expand Down

0 comments on commit 687c540

Please sign in to comment.