diff --git a/admin/admin.civicrm.php b/admin/admin.civicrm.php index 86c929bc..d0a5ec40 100644 --- a/admin/admin.civicrm.php +++ b/admin/admin.civicrm.php @@ -53,9 +53,9 @@ function civicrm_init() { */ function civicrm_initialize() { // Check for php version and ensure its greater than minPhpVersion - $minPhpVersion = '5.3.4'; + $minPhpVersion = '7.0.0'; if (version_compare(PHP_VERSION, $minPhpVersion) < 0) { - echo "CiviCRM requires PHP Version $minPhpVersion or greater. You are running PHP Version " . PHP_VERSION . "
"; + echo "CiviCRM requires PHP version $minPhpVersion or greater. You are running PHP version " . PHP_VERSION . "
"; exit(); } diff --git a/admin/configure.php b/admin/configure.php index a7fd6e86..ee0b79a8 100644 --- a/admin/configure.php +++ b/admin/configure.php @@ -30,6 +30,13 @@ global $civicrmUpgrade; $civicrmUpgrade = FALSE; function civicrm_setup() { + // Check for php version and ensure its greater than minPhpVersion + $minPhpVersion = '7.0.0'; + if (version_compare(PHP_VERSION, $minPhpVersion) < 0) { + echo "CiviCRM requires PHP version $minPhpVersion or greater. You are running PHP version " . PHP_VERSION . "
"; + exit(); + } + global $adminPath, $compileDir; $adminPath = JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_civicrm'; diff --git a/site/civicrm.php b/site/civicrm.php index a404dd7d..9b949cc5 100644 --- a/site/civicrm.php +++ b/site/civicrm.php @@ -24,9 +24,9 @@ function civicrm_init() { */ function civicrm_initialize() { // Check for php version and ensure its greater than minPhpVersion - $minPhpVersion = '5.3.4'; + $minPhpVersion = '7.0.0'; if (version_compare(PHP_VERSION, $minPhpVersion) < 0) { - echo "CiviCRM requires PHP Version $minPhpVersion or greater. You are running PHP Version " . PHP_VERSION . "
"; + echo "CiviCRM requires PHP version $minPhpVersion or greater. You are running PHP version " . PHP_VERSION . "
"; exit(); }