xref: /PHP-8.2/ext/ffi/tests/gh16397.phpt (revision ec8a24f7)
1--TEST--
2GH-16397 (Segmentation fault when comparing FFI object)
3--EXTENSIONS--
4ffi
5--FILE--
6<?php
7$ffi = FFI::cdef();
8try {
9    var_dump($ffi != 1);
10} catch (FFI\Exception $e) {
11    echo $e->getMessage(), "\n";
12}
13?>
14--EXPECT--
15Cannot compare FFI objects
16