summaryrefslogtreecommitdiff
path: root/ext/ffi/tests/bug78543.phpt
blob: e2f014d7fc95b687be39caf7f6f2f478b6dc8c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #78543 (is_callable() on FFI\CData throws Exception)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$ffi = FFI::cdef(' struct test { int dummy; }; ');
$test = $ffi->new('struct test');
var_dump(is_callable($test));
?>
--EXPECT--
bool(false)