ci_bootstrap_3
ci_bootstrap_3 copied to clipboard
ISSUE - mysqli::real_connect(): Headers and client library minor version mismatch
Hi ! I just see this awesome work and I would like to test it however, I have this message above:
Severity: Warning
Message: mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50541 Library:50634
Filename: mysqli/mysqli_driver.php
Line Number: 201
Backtrace:
File: C:\MAMP\htdocs\application\third_party\MX\Loader.php
Line: 109
Function: DB
File: C:\MAMP\htdocs\application\third_party\MX\Loader.php
Line: 65
Function: initialize
File: C:\MAMP\htdocs\application\third_party\MX\Base.php
Line: 55
Function: __construct
File: C:\MAMP\htdocs\application\third_party\MX\Base.php
Line: 60
Function: __construct
File: C:\MAMP\htdocs\application\third_party\MX\Controller.php
Line: 4
Function: require
File: C:\MAMP\htdocs\application\third_party\MX\Modules.php
Line: 123
Function: include_once
File: C:\MAMP\htdocs\application\core\MY_Controller.php
Line: 9
Function: spl_autoload_call
File: C:\MAMP\htdocs\index.php
Line: 315
Function: require_once
FYI, I have the last MAMP version with php7 and my Mysqli infos are:
MysqlI Support enabled Client API library version 5.6.34 Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Client API header version 5.5.41 MYSQLI_SOCKET /tmp/mysql.soc
I tried to find a background by manipuling the code in the file system/database/drivers/mysqli/mysqli_driver.php but nothing seem to change..
I think these line cause the warning issue..
if (
($client_flags & MYSQLI_CLIENT_SSL)
&& version_compare($this->_mysqli->client_info, '5.7.3', '<=')
&& empty($this->_mysqli->query("SHOW STATUS LIKE 'ssl_cipher'")->fetch_object()->Value)
)
{
$this->_mysqli->close();
$message = 'MySQLi was configured for an SSL connection, but got an unencrypted connection instead!';
log_message('error', $message);
return ($this->db->db_debug) ? $this->db->display_error($message, '', TRUE) : FALSE;
}
return $this->_mysqli;
}
Someone could help me? Thanks :)
Update 1: defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', FALSE); instead of TRUE in application/config/constants.php -> Now showing only "Message: mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50541 " I know it's logic ;)
Still searching how to deal with the minor version mismatch message..
did you solve it? I have the same issue):
same