php.ini选项

最后更新于:2022-04-02 06:18:14

# php.ini选项 [TOC] ## swoole.enable\_coroutine `On`,`Off`开关内置协程, 默认开启 ## swoole.aio\_thread\_num 设置`AIO`异步文件读写的线程数量,默认为`2` ## swoole.display\_errors 关闭/开启`Swoole`错误信息,默认开启 ## swoole.socket\_buffer\_size 设置进程间通信的`Socket`缓存区尺寸,默认为`8M` ## swoole.fast\_serialize swoole\_server中的task功能中是否使用swoole\_serialize对异步任务数据序列化 ## swoole.use\_shortname 是否启用短别名。 ## 类名映射关系 | 下划线类名风格 | 命名空间风格 | | --- | --- | | swoole\_server | Swoole\\Server | | swoole\_client | Swoole\\Client | | swoole\_process | Swoole\\Process | | swoole\_timer | Swoole\\Timer | | swoole\_table | Swoole\\Table | | swoole\_lock | Swoole\\Lock | | swoole\_atomic | Swoole\\Atomic | | swoole\_buffer | Swoole\\Buffer | | swoole\_redis | Swoole\\Redis | | swoole\_event | Swoole\\Event | | swoole\_mysql | Swoole\\MySQL | | swoole\_mmap | Swoole\\Mmap | | swoole\_channel | Swoole\\Channel | | swoole\_serialize | Swoole\\Serialize | | swoole\_http\_server | Swoole\\Http\\Server | | swoole\_http\_client | Swoole\\Http\\Client | | swoole\_http\_request | Swoole\\Http\\Request | | swoole\_http\_response | Swoole\\Http\\Response | | swoole\_websocket\_server | Swoole\\WebSocket\\Server | > 需要swoole-1.8.1或更高版本 * [swoole.enable\_coroutine](https://wiki.swoole.com/wiki/page/352.html#entry_h2_0) * [swoole.aio\_thread\_num](https://wiki.swoole.com/wiki/page/352.html#entry_h2_1) * [swoole.display\_errors](https://wiki.swoole.com/wiki/page/352.html#entry_h2_2) * [swoole.socket\_buffer\_size](https://wiki.swoole.com/wiki/page/352.html#entry_h2_3) * [swoole.fast\_serialize](https://wiki.swoole.com/wiki/page/352.html#entry_h2_4) * [swoole.use\_shortname](https://wiki.swoole.com/wiki/page/352.html#entry_h2_5) * [类名映射关系](https://wiki.swoole.com/wiki/page/352.html#entry_h2_6)
';