From 6b78f5d5087f6ae1b75fd666beb3b1a144694bba Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 6 Mar 2019 12:18:38 +1300 Subject: [PATCH] Remove mcrypt system status check Php 7.2 doesn't support this & it is being deprecated so having this here causes sites to try to install it - creating a migration problem they wouldn't otherwise have The situation here is unresolved but this check doesn't solve more confusion than it creates --- CRM/Utils/Check/Component/Env.php | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index e20795502b..6ebef2febf 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -120,35 +120,6 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component { return $messages; } - /** - * @return array - */ - public function checkPhpEcrypt() { - $messages = array(); - $mailingBackend = Civi::settings()->get('mailing_backend'); - if (!is_array($mailingBackend) - || !isset($mailingBackend['outBound_option']) - || $mailingBackend['outBound_option'] != CRM_Mailing_Config::OUTBOUND_OPTION_SMTP - || !CRM_Utils_Array::value('smtpAuth', $mailingBackend) - ) { - return $messages; - } - - $test_pass = 'iAmARandomString'; - $encrypted_test_pass = CRM_Utils_Crypt::encrypt($test_pass); - if ($encrypted_test_pass == base64_encode($test_pass)) { - $messages[] = new CRM_Utils_Check_Message( - __FUNCTION__, - ts('Your PHP does not include the mcrypt encryption functions. Your SMTP password will not be stored encrypted, and if you have recently upgraded from a PHP that stored it with encryption, it will not be decrypted correctly.' - ), - ts('PHP Missing Extension "mcrypt"'), - \Psr\Log\LogLevel::WARNING, - 'fa-server' - ); - } - return $messages; - } - /** * Check that the MySQL time settings match the PHP time settings. * -- 2.25.1