PHP 7.4.0RC4 Released!

Runtime Configuration

The behaviour of these functions is affected by settings in php.ini.

FFI Configure Options
Name Default Changeable Changelog
ffi.enable "preload" PHP_INI_SYSTEM  
For further details and definitions of the PHP_INI_* modes, see the Where a configuration setting may be set.

Here's a short explanation of the configuration directives.

ffi.enable string

Allows enabling ("true") or disabling ("false") FFI API usage, or restricting it only to the CLI SAPI and preloaded files ("preload").

The FFI API restrictions only affect the FFI class, but not overloaded functions of FFI\CData objects. This means that it is possible to create some FFI\CData objects in preloaded files, and then to use these directly in PHP scripts.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top