PHP 8.1.28 Released!

运行时配置

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

Yar 配置选项
名字 默认 可修改范围 更新日志
yar.packager php INI_SYSTEM
yar.debug Off INI_ALL
yar.connect_timeout 1000 INI_ALL
yar.timeout 5000 INI_ALL
yar.expose_info On INI_SYSTEM

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

yar.packager string

设置Yar的打包工具, 可以是PHP(serialize), JSON, Msgpack(这个需要编译的时候指定--enable-msgpack).

yar.debug string

打开的时候, Yar会把请求过程的日志都打印出来(到stderr).

yar.connect_timeout int

连接超时(毫秒为单位)

yar.timeout int

处理超时(毫秒为单位)

yar.expose_info bool

如果关闭, 则当通过浏览器访问Server的时候, 不会出现Server Info信息.

add a note

User Contributed Notes

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