Runtime Configuration

The behaviour of these functions is affected by settings in php.ini.

Swoole Configure Options
NameDefaultChangeableChangelog
swoole.aio_thread_num2INI_ALL
swoole.display_errorsOnINI_ALL
swoole.fast_serializeOffINI_ALL
swoole.unixsock_buffer_size8388608INI_ALL
swoole.use_namespaceOnINI_SYSTEM
swoole.enable_coroutineOnINI_ALLAvailable as of swoole 4.0.0
swoole.use_shortnameOnINI_ALLAvailable as of swoole 4.0.0
swoole.enable_preemptive_schedulerOffINI_ALLAvailable as of swoole 4.4.0
swoole.enable_libraryOnINI_ALLAvailable as of swoole 4.0.0

Here's a short explanation of the configuration directives.

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

To Top