X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FUpgrade%2FForm.php;h=4bb1e123c1dac90700eb8d5037d835fee896e381;hb=f299f7db79fed6f3598c84302966bda087e7cac3;hp=008d42210a4fb5c4dad952e6694b9d1d03124644;hpb=7bfd05f6edaba03692649d801f8547c5c18d150a;p=civicrm-core.git diff --git a/CRM/Upgrade/Form.php b/CRM/Upgrade/Form.php index 008d42210a..4bb1e123c1 100644 --- a/CRM/Upgrade/Form.php +++ b/CRM/Upgrade/Form.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2019 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2019 + * @copyright CiviCRM LLC (c) 2004-2020 * $Id$ * */ @@ -50,10 +50,9 @@ class CRM_Upgrade_Form extends CRM_Core_Form { /** * Minimum php version required to run (equal to or lower than the minimum install version) * - * Even though 5.6 is no longer supported, this value is left here for a while - * so as not to block stragglers from upgrading. + * As of Civi 5.16, using PHP 5.x will lead to a hard crash during bootstrap. */ - const MINIMUM_PHP_VERSION = '5.6'; + const MINIMUM_PHP_VERSION = '7.0.0'; /** * @var \CRM_Core_Config @@ -638,25 +637,52 @@ SET version = '$version' } /** - * Disable any extensions not compatible with this new version. + * Disable/uninstall any extensions not compatible with this new version. * * @param \CRM_Queue_TaskContext $ctx * @param string $postUpgradeMessageFile * @return bool */ public static function disableOldExtensions(CRM_Queue_TaskContext $ctx, $postUpgradeMessageFile) { - $compatInfo = CRM_Extension_System::getCompatibilityInfo(); - $disabled = []; + $messages = []; $manager = CRM_Extension_System::singleton()->getManager(); - foreach ($compatInfo as $key => $ext) { - if (!empty($ext['obsolete']) && $manager->getStatus($key) == $manager::STATUS_INSTALLED) { - $disabled[$key] = sprintf("