Skip to content

Fix segfault caused by weak references to FFI objects #12488

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

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

sj-i
Copy link
Contributor

@sj-i sj-i commented Oct 20, 2023

The destructions of FFI objects were not notified to their weak references.
This resulted in invalid pointers when an FFI object was destroyed before its weak references.

@dstogov
Copy link
Member

dstogov commented Oct 23, 2023

@iluuu1994 @arnaud-lb could you please review this

@arnaud-lb arnaud-lb merged commit 04b35a4 into php:PHP-8.1 Oct 28, 2023
arnaud-lb added a commit that referenced this pull request Oct 28, 2023
* PHP-8.1:
  [ci skip] NEWS
  Fix segfault caused by weak references to FFI objects (#12488)
arnaud-lb added a commit that referenced this pull request Oct 28, 2023
* PHP-8.2:
  [ci skip] NEWS
  [ci skip] NEWS
  Fix segfault caused by weak references to FFI objects (#12488)
arnaud-lb added a commit that referenced this pull request Oct 28, 2023
* PHP-8.3:
  [ci skip] NEWS
  [ci skip] NEWS
  [ci skip] NEWS
  Fix segfault caused by weak references to FFI objects (#12488)
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.

4 participants