My code:
public function loadFFI()
{
FFI::load("C:\phptest\dummy.h");
}
dummy.h:
struct ffitest
{
char test1[16];
byte test2;
};
Error:
PHP Fatal error: Uncaught FFI\ParserException: Undefined C type "byte" at line 4
Why can I not use word
or byte
in this struct
in PHP FFI? char
, int
, and short
work as expected.