Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 23, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

In a lot of places the return value is not checked, and when the
function fails the code continues execution. However, this means that
operations on the stack fail and will cause memory leaks on the objects
that weren't pushed.

We also notice an inconsistency in how these failures are handled.
For example, in one place we explicitly have a fatal error
`php_error_docref(NULL, E_ERROR, "Memory allocation failure");`
but this is the only place to do so.

Closes GH-20957.
* PHP-8.4:
  Fix memory leaks when sk_X509_new_null() fails
* PHP-8.5:
  Fix memory leaks when sk_X509_new_null() fails
@pull pull bot locked and limited conversation to collaborators Jan 23, 2026
@pull pull bot added the ⤵️ pull label Jan 23, 2026
@pull pull bot merged commit 61845cc into turkdevops:master Jan 23, 2026
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.

1 participant