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

Properly handle MySQL error code 4031 from PHP 8.4 #6363

Open
wants to merge 1 commit into
base: 3.8.x
Choose a base branch
from

Conversation

mbeccati
Copy link
Contributor

Q A
Type improvement
Fixed issues Prevents future issues ;-)

Summary

PHP 8.4 will support a new error code 4031 in mysqlnd when the connection is dropped due to timeouts.

It has been introduced in:
mysql/mysql-server@14508bb

And PHP 8.4 will support it:
php/php-src#13618

The PR gets the test suite green again (mysqli + pdo_mysql). I have used 4.0.x as base, but feel free to change according to your preferences.

@derrabus
Copy link
Member

We need to target the 3.8.x branch with this change. Did I understand this correctly: we need the change in PHP which has not been merged yet?

@mbeccati
Copy link
Contributor Author

@derrabus ok I will update the PR to target 3.8.

Basically the change had been merged from PHP 8.2 up, but it was breaking DBAL properly recognising the connection being lost. As it is a BC-breaking change, it has been reverted and it will be soon merged to master only.

@mbeccati mbeccati changed the base branch from 4.0.x to 3.8.x April 22, 2024 15:07
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.

None yet

2 participants