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

Close pgsql connection in destructor #5892

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Feb 1, 2023

Q A
Type bug
Fixed issues Follows #5880

Summary

Found while merging up. We usually close a connection by unsetting the driver. Currently, that would keep the a pgsql connection open but inaccessible until the PHP process terminates. With this PR, I'm explicitly closing the connection when the driver connection is destructed.

@derrabus derrabus force-pushed the bugfix/destruct-pgsql-connection branch from ea6def2 to e9a1e41 Compare February 2, 2023 22:27
@derrabus derrabus force-pushed the bugfix/destruct-pgsql-connection branch from e9a1e41 to 9c2a1bb Compare February 2, 2023 22:29
@derrabus derrabus merged commit 11683d1 into doctrine:3.6.x Feb 3, 2023
@derrabus derrabus deleted the bugfix/destruct-pgsql-connection branch February 3, 2023 12:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants