Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE - mysqli::real_connect(): Headers and client library minor version mismatch #113

Open
btronquo opened this issue May 9, 2017 · 2 comments

Comments

@btronquo
Copy link

btronquo commented May 9, 2017

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..

@btronquo btronquo changed the title Issue with ISSUE - mysqli::real_connect(): Headers and client library minor version mismatch May 9, 2017
@manohareddy
Copy link

did you solve it? I have the same issue):

@DiegoFleitas
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants