Commit eb81841
committed
Fix phpGH-16397: Segmentation fault when comparing FFI object
`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.1 parent 1d0fbdf commit eb81841
3 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2922 | 2922 | | |
2923 | 2923 | | |
2924 | 2924 | | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
2925 | 2931 | | |
2926 | 2932 | | |
2927 | 2933 | | |
| |||
5367 | 5373 | | |
5368 | 5374 | | |
5369 | 5375 | | |
5370 | | - | |
| 5376 | + | |
5371 | 5377 | | |
5372 | 5378 | | |
5373 | 5379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments