1--TEST-- 2FFI 019: Parameter type adjustment 3--SKIPIF-- 4<?php require_once('skipif.inc'); ?> 5--INI-- 6ffi.enable=1 7--FILE-- 8<?php 9try { 10 FFI::cdef("static int foo(int[]);"); 11 echo "ok\n"; 12} catch (Throwable $e) { 13 echo get_class($e) . ": " . $e->getMessage()."\n"; 14} 15try { 16 FFI::cdef("static int foo(int bar(int));"); 17 echo "ok\n"; 18} catch (Throwable $e) { 19 echo get_class($e) . ": " . $e->getMessage()."\n"; 20} 21?> 22ok 23--EXPECT-- 24ok 25ok 26ok 27