php-src/ext/ffi/tests/019.phpt
2019-01-14 11:47:50 +03:00

27 lines
435 B
PHP

--TEST--
FFI 019: Parameter type adjustment
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--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