dis-bench / src /php /php-src /ext /ffi /tests /019.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
424 Bytes
--TEST--
FFI 019: Parameter type adjustment
--EXTENSIONS--
ffi
--INI--
ffi.enable=1
--FILE--
<?php
try {
FFI::cdef("static int foo(int[]);");
echo "ok\n";
} catch (Throwable $e) {
echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
FFI::cdef("static int foo(int bar(int));");
echo "ok\n";
} catch (Throwable $e) {
echo get_class($e) . ": " . $e->getMessage()."\n";
}
?>
ok
--EXPECT--
ok
ok
ok