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

Mysql connection issue with MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT #1219 #1896

Merged
merged 3 commits into from Apr 1, 2019
Merged

Mysql connection issue with MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT #1219 #1896

merged 3 commits into from Apr 1, 2019

Conversation

atishhamte
Copy link
Contributor

Mysql connection issue with MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT #1219

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • Conforms to style guide

@lonnieezell lonnieezell merged commit e80811a into codeigniter4:develop Apr 1, 2019
@nControl88
Copy link

Hi @atishamte. I realise this PR has already been committed a while ago. I noticed an issue with the current code, which you might be able to change.

elseif (defined('MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT') && version_compare($this->mysqli->client_info, '5.6', '>='))
{
$client_flags += MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT;
}

The version_compare compares the local version of mysql with the condition. This might not work out if using an external database server. Would you be able to change this to a conditional setting?

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

Successfully merging this pull request may close these issues.

None yet

3 participants