We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In PHP 8.1, MySQLi default error mode is set to exceptions. Prior to PHP 8.1, the default error reporting mode in MySQLi was to silent the errors.
If I understand correctly, now mysqli_sql_exception is not captured and standardized into DBAL exceptions, and rather bubble up in consuming code.
mysqli_sql_exception
https://php.watch/versions/8.1/mysqli-error-mode
The text was updated successfully, but these errors were encountered:
In #4685, the mysqli driver sets the error mode to MYSQLI_REPORT_OFF. A patch that implements handling of the new default is welcome.
mysqli
MYSQLI_REPORT_OFF
Sorry, something went wrong.
I'm trying to fix this in #4875.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Successfully merging a pull request may close this issue.
Bug Report
Summary
In PHP 8.1, MySQLi default error mode is set to exceptions. Prior to PHP 8.1, the default error reporting mode in MySQLi was to silent the errors.
If I understand correctly, now
mysqli_sql_exception
is not captured and standardized into DBAL exceptions, and rather bubble up in consuming code.https://php.watch/versions/8.1/mysqli-error-mode
The text was updated successfully, but these errors were encountered: