运行时配置
这些函数的行为受 php.ini 中的设置影响。
| 名字 | 默认 | 可修改范围 | 更新日志 |
|---|---|---|---|
| swoole.aio_thread_num | 2 | INI_ALL |
|
| swoole.display_errors | On | INI_ALL |
|
| swoole.fast_serialize | Off | INI_ALL |
|
| swoole.unixsock_buffer_size | 8388608 | INI_ALL |
|
| swoole.use_namespace | On | INI_SYSTEM |
|
| swoole.enable_coroutine | On | INI_ALL |
Available as of swoole 4.0.0 |
| swoole.use_shortname | On | INI_ALL |
Available as of swoole 4.0.0 |
| swoole.enable_preemptive_scheduler | Off | INI_ALL |
Available as of swoole 4.4.0 |
| swoole.enable_library | On | INI_ALL |
Available as of swoole 4.0.0 |
这是配置指令的简短说明。
-
swoole.aio_thread_numint -
POSIX asynchronous I/O thread number
-
swoole.display_errorsstring -
This determines whether Swoole errors should be printed to the screen.
-
swoole.fast_serializestring -
Whether to enable Swoole fast_serialize.
-
swoole.unixsock_buffer_sizeint -
Buffer size of Unix socket.
-
swoole.use_namespacestring -
Whether to use PHP namespaces
-
swoole.enable_coroutinestring -
Whether to enable coroutine
-
swoole.use_shortnamestring -
Whether to enable short aliases
-
swoole.enable_preemptive_schedulerstring -
Whether to enable preemptive scheduler
-
swoole.enable_librarystring -
Whether to enable library
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。