From: Tim Otten Date: Mon, 25 Jul 2016 21:52:46 +0000 (-0700) Subject: CRM-17789 - Display advisory about mysqli X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=991298ee18cbdad8cf8bdd547c6966ce5b289751;p=civicrm-core.git CRM-17789 - Display advisory about mysqli --- diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 48f88870f0..38548da9b2 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -68,6 +68,29 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component { return $messages; } + /** + * @return array + */ + public function checkPhpMysqli() { + $messages = array(); + + if (!extension_loaded('mysqli')) { + $messages[] = new CRM_Utils_Check_Message( + __FUNCTION__, + ts('Future versions of CiviCRM may require the PHP extension "%2". To ensure that your system will be compatible, please install it in advance. For more explanation, see the announcement.', + array( + 1 => 'https://civicrm.org/blog/totten/psa-please-verify-php-extension-mysqli', + 2 => 'mysqli', + )), + ts('Forward Compatibility: Enable "mysqli"'), + \Psr\Log\LogLevel::WARNING, + 'fa-server' + ); + } + + return $messages; + } + /** * Check that the MySQL time settings match the PHP time settings. *