Skip to content

Merge 3.9.x into 4.2.x#6725

Merged
derrabus merged 2 commits intodoctrine:4.2.xfrom
derrabus:4.2.x
Jan 16, 2025
Merged

Merge 3.9.x into 4.2.x#6725
derrabus merged 2 commits intodoctrine:4.2.xfrom
derrabus:4.2.x

Conversation

@derrabus
Copy link
Member

No description provided.

Long running processes might hit the `max_prepared_stmt_count` due not
deallocating the statement correctly.

<!-- Fill in the relevant information below to help triage your pull
request. -->

|      Q       |   A
|------------- | -----------
| Type         | bug
| Fixed issues | -

#### Summary

For postgres there was an implementation to deallocate prepared
statements to prevent hitting a any limits. This was not the case for
the `mysqli` drivers. Which can suffer from the same problem.

In this PR a `mysqli_stmt_close` is added to properly cleanup any open
prepared statement.

A similar approach was implemented for PostgreSQL in this PR
doctrine#5893

---------

Co-authored-by: Alexander M. Turek <me@derrabus.de>
* 3.9.x:
  bugfix: deallocate mysqli prepared statement (doctrine#6681)
@derrabus derrabus merged commit 19a2b7d into doctrine:4.2.x Jan 16, 2025
@derrabus derrabus deleted the 4.2.x branch January 16, 2025 08:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants