xref: /PHP-7.4/ext/ffi/tests/bug78543.phpt (revision 9dfbcd72)
1--TEST--
2Bug #78543 (is_callable() on FFI\CData throws Exception)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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