From 991298ee18cbdad8cf8bdd547c6966ce5b289751 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 25 Jul 2016 14:52:46 -0700 Subject: [PATCH] CRM-17789 - Display advisory about mysqli --- CRM/Utils/Check/Component/Env.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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. * -- 2.25.1