Skip to content

Fix GH-12905: FFI::new interacts badly with observers #12906

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

Closed
wants to merge 2 commits into from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Dec 8, 2023

This is basically #11548 but for FFI.

Because these functions are copied and not properly registered (which we can't), the observer code doesn't add the temporaries on startup. Add them via a callback during startup.

Because these functions are copied and not properly registered (which we
can't), the observer code doesn't add the temporaries on startup.
Add them via a callback during startup.
@nielsdos nielsdos requested a review from bwoebi December 8, 2023 16:45
@nielsdos nielsdos linked an issue Dec 8, 2023 that may be closed by this pull request
Copy link
Member

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right to me, and I verified that it fixes the bug too :-)

Let's merge it.

Copy link
Member

@derickr derickr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nielsdos nielsdos closed this in c727f29 Dec 19, 2023
@eduard-sukharev
Copy link

Has it made it's way to 8.2.14? I didn't see references in changelog on php.net

@nielsdos
Copy link
Member Author

Has it made it's way to 8.2.14? I didn't see references in changelog on php.net

No, it was too late to bring it into 8.2.14. The fix will be in 8.2.15 scheduled for January.

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.

FFI::new interacts badly with observers
4 participants