xref: /PHP-8.1/ext/ffi/tests/bug78543.phpt (revision bd9f4fa6)
1--TEST--
2Bug #78543 (is_callable() on FFI\CData throws Exception)
3--EXTENSIONS--
4ffi
5--FILE--
6<?php
7$ffi = FFI::cdef(' struct test { int dummy; }; ');
8$test = $ffi->new('struct test');
9var_dump(is_callable($test));
10?>
11--EXPECT--
12bool(false)
13