略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 运行时配置

2024-11-14

运行时配置

这些函数的行为受 php.ini 中的设置影响。

FFI 配置选项
名字 默认 可修改范围 更新日志
ffi.enable "preload" PHP_INI_SYSTEM  
ffi.preload "" PHP_INI_SYSTEM  
有关 PHP_INI_* 样式的更多详情与定义,见 配置可被设定范围

这是配置指令的简短说明。

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.

ffi.preload string

Allows preloading of FFI bindings during startup, which is not possible with FFI::load() if opcache.preload_user is set. This directive accepts a DIRECTORY_SEPARATOR delimited list of filenames. The preloaded bindings can be accessed by calling FFI::scope().

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/ffi.configuration.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3