-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Segmentation fault when comparing FFI object #16397
Labels
Comments
devnexen
added
Extension: ffi
Extension: opcache
Status: Verified
and removed
Status: Needs Triage
labels
Oct 12, 2024
Much simpler reproducer that doesn't need opcache: <?php
$ffi = FFI::cdef();
var_dump($ffi != 1); |
The problem is that the |
nielsdos
changed the title
Segmentation fault when comparing FFI object with constant
Segmentation fault when comparing FFI object
Oct 12, 2024
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Oct 12, 2024
`compare` is a required handler [1], but this handler was set to NULL. Throw an exception when trying to compare FFI objects. [1] https://github.com/php/php-src/blob/35c8a010c6633a2a1ba7c16a0cf83affa07b819e/Zend/zend_object_handlers.h#L231C1-L231C64
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Oct 14, 2024
`compare` is a required handler [1], but this handler was set to NULL. Throw an exception when trying to compare FFI objects. [1] https://github.com/php/php-src/blob/35c8a010c6633a2a1ba7c16a0cf83affa07b819e/Zend/zend_object_handlers.h#L231C1-L231C64 Closes phpGH-16401.
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Oct 14, 2024
`compare` is a required handler [1], but this handler was set to NULL. Throw an exception when trying to compare FFI objects. [1] https://github.com/php/php-src/blob/35c8a010c6633a2a1ba7c16a0cf83affa07b819e/Zend/zend_object_handlers.h#L231C1-L231C64 Closes phpGH-16401.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
Resulted in this output:
To reproduce:
PHP Version
nightly
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: