略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 运行时配置

2024-12-22

运行时配置

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

V8js 配置选项
名字 默认 可修改范围 更新日志
v8js.max_disposed_contexts 25 PHP_INI_ALL
v8js.flags   PHP_INI_ALL

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

v8js.max_disposed_contexts int

Sets limit for disposed contexts before forcing V8 to do garbage collection.

v8js.flags string

Sets V8 command line flags. The list of available flags can be obtained in CLI mode by setting this parameter to --help. Example:

$ php -r 'ini_set("v8js.flags", "--help"); new V8Js;' | less

注意:

For these flags to be effective in runtime the ini_set() call has to be done before any V8Js objects are instantiated!

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

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

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