Open yanggs07 opened 5 years ago
Env: ubuntu18.04+php7.3 with libffi-dev 3.2.1-8 amd64 with the patch https://github.com/fpoirotte/php-ffi/commit/734630fe3d2e3efd343d3f3636b58446abd9c941.diff to pass the configure
Commit 86b43c3519b9803aa7074f23d936f50e50b1b5ee introduced the notion of API restrictions. These restrictions are based on the new preload RFC that has recently been added to PHP's master branch (see https://wiki.php.net/rfc/preload & php/php-src@f6d227ed4f5d4c0276eb720806e808baceb37f10). Unfortunately, this means that PHP must have been compiled from a nightly snapshot / fresh clone;
Keep in mind that this extension is still pretty new: the API may still change (see recent commits related to FFI:cdef
, FFI::typeof
, FFI::arrayType
and so on).
@yanggs07 @fpoirotte this extension is going to be part of PHP 7.4 (7.3 is not supported, however it might be possible to make it compatible)