Skip to content

Conversation

schlessera
Copy link
Member

Starting with PHP 8.1, mysqli has a new default error reporting mode that throws exceptions.

As WordPress handles error conditions on its own, this is not needed.

The default error mode is already adapted with WP Core 5.9+, but on older versions the above changes means that you cannot even update WordPress sites on PHP 8.1, as they fatal with an uncaught exception.

Therefore, WP-CLI also sets the default error reporting mode now to avoid these fatals.

@schlessera schlessera requested a review from a team as a code owner December 2, 2021 16:50
@schlessera schlessera added this to the 2.5.1 milestone Dec 2, 2021
@schlessera schlessera merged commit 3c3ebda into master Dec 2, 2021
@schlessera schlessera deleted the fix/mysql-error-reporting branch December 2, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant