Skip to content

Conversation

kamil-tekiela
Copy link
Member

I have reconsidered. While I am still uneasy about PHP stripping this value, it seems that MariaDB does recommend that.

Based on the linked conversation in #7963 and the earlier PR by Georg Richter from MariaDB I decided that it's ok to strip the prefix.

This PR removes the earlier implementation of this hack and also supersedes #7963. A unit test was added in mysqli but not in PDO. The test should succeed in PHP CI jobs no matter what as I don't think we have a CI job connecting to MariaDB. I tested this PR on Windows with MariaDB 10 and the test passed.

The PR is against PHP 8.0, but if we are worried about BC we can merge it only in Master.

@kamil-tekiela kamil-tekiela requested a review from cmb69 January 19, 2022 17:53
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'm glad that you've reconsidered. :)

Besides the style nit, this looks good to me.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
@kamil-tekiela kamil-tekiela deleted the Strip-MariaDB-10-prefix branch January 20, 2022 14:46
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.

2 participants