mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
27 lines
435 B
PHP
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
|