這些函式的行為會受到 php.ini 中設定的影響。
名稱 | 預設值 | 可變更性 | 更新日誌 |
---|---|---|---|
swoole.aio_thread_num | 2 | INI_ALL |
|
swoole.display_errors | 開啟 | INI_ALL |
|
swoole.fast_serialize | 關閉 | INI_ALL |
|
swoole.unixsock_buffer_size | 8388608 | INI_ALL |
|
swoole.use_namespace | 開啟 | INI_SYSTEM |
|
swoole.enable_coroutine | 開啟 | INI_ALL |
自 swoole 4.0.0 起可用 |
swoole.use_shortname | 開啟 | INI_ALL |
自 swoole 4.0.0 起可用 |
swoole.enable_preemptive_scheduler | 關閉 | INI_ALL |
自 swoole 4.4.0 起可用 |
swoole.enable_library | 開啟 | INI_ALL |
自 swoole 4.0.0 起可用 |
以下是設定指令的簡短說明。
swoole.aio_thread_num
intPOSIX 非同步 I/O 執行緒數量
swoole.display_errors
string此選項決定 Swoole 錯誤是否應顯示在螢幕上。
swoole.fast_serialize
string是否啟用 Swoole 快速序列化。
swoole.unixsock_buffer_size
intUnix Socket 的緩衝區大小。
swoole.use_namespace
string是否使用 PHP 命名空間
swoole.enable_coroutine
string是否啟用協程
swoole.use_shortname
string是否啟用簡短別名
swoole.enable_preemptive_scheduler
string是否啟用搶佔式排程器
swoole.enable_library
string是否啟用程式庫