运行时配置
这些函数的行为受 php.ini 中的设置影响。
名字 | 默认 | 可修改范围 | 更新日志 |
---|---|---|---|
yar.packager | php | PHP_INI_SYSTEM | |
yar.debug | Off | PHP_INI_ALL | |
yar.connect_timeout | 1000 | PHP_INI_ALL | |
yar.timeout | 5000 | PHP_INI_ALL | |
yar.expose_info | On | PHP_INI_SYS |
这是配置指令的简短说明。
-
yar.packager
string -
设置Yar的打包工具, 可以是PHP(serialize), JSON, Msgpack(这个需要编译的时候指定--enable-msgpack).
-
yar.debug
string -
打开的时候, Yar会把请求过程的日志都打印出来(到stderr).
-
yar.connect_timeout
integer -
连接超时(毫秒为单位)
-
yar.timeout
integer -
处理超时(毫秒为单位)
-
yar.expose_info
bool -
如果关闭, 则当通过浏览器访问Server的时候, 不会出现Server Info信息.

User Contributed Notes
There are no user contributed notes for this page.