这些函数的行为受 php.ini 中的设置影响。
| 名字 | 默认 | 可修改范围 | 更新日志 |
|---|---|---|---|
| ffi.enable | "preload" | INI_SYSTEM |
|
| ffi.preload | "" | INI_SYSTEM |
这是配置指令的简短说明。
ffi.enable
string
"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.
ffi.preload
string
DIRECTORY_SEPARATOR delimited list of filenames.
The preloaded bindings can be accessed by calling FFI::scope().