運(yùn)行時(shí)配置

這些函數(shù)的行為受 php.ini 中的設(shè)置影響。

Swoole 配置選項(xiàng)
名字 默認(rèn) 可修改范圍 更新日志
swoole.aio_thread_num 2 PHP_INI_ALL
swoole.display_errors On PHP_INI_ALL
swoole.fast_serialize Off PHP_INI_ALL
swoole.unixsock_buffer_size 8388608 PHP_INI_ALL
swoole.use_namespace On PHP_INI_SYSTEM
swoole.enable_coroutine On PHP_INI_ALL Available as of swoole 4.0.0
swoole.use_shortname On PHP_INI_ALL Available as of swoole 4.0.0
swoole.enable_preemptive_scheduler Off PHP_INI_ALL Available as of swoole 4.4.0
swoole.enable_library On PHP_INI_ALL Available as of swoole 4.0.0

這是配置指令的簡(jiǎn)短說明。

swoole.aio_thread_num int

POSIX asynchronous I/O thread number

swoole.display_errors string

This determines whether Swoole errors should be printed to the screen.

swoole.fast_serialize string

Whether to enable Swoole fast_serialize.

swoole.unixsock_buffer_size int

Buffer size of Unix socket.

swoole.use_namespace string

Whether to use PHP namespaces

swoole.enable_coroutine string

Whether to enable coroutine

swoole.use_shortname string

Whether to enable short aliases

swoole.enable_preemptive_scheduler string

Whether to enable preemptive scheduler

swoole.enable_library string

Whether to enable library