首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
php8RC3-swoole4.5.7 PHP Fatal error. Server::onAccept' is not callable
### 问题描述 Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 4.5.7 php8RC3 mac 10.15.7 ### 相关代码 ```php php bin/mix.php api ____ ______ ___ _____ ___ _____ / /_ _____ / __ `__ \/ /\ \/ /__ / __ \/ __ \/ __ \ / / / / / / / /\ \/ _ / /_/ / / / / /_/ / /_/ /_/ /_/_/ /_/\_\ / .___/_/ /_/ .___/ /_/ /_/ Server Name: mix-api System Name: darwin PHP Version: 8.0.0RC3 Swoole Version: 4.5.7 Framework Version: 2.2.16 Listen Addr: 127.0.0.1 Listen Port: 9502 [2020-11-10 15:41:50] API.INFO: [StartCommand.php:84] Server start PHP Fatal error: Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable in Unknown on line 0 Fatal error: Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable in Unknown on line 0 [2020-11-10 15:41:50] API.ERROR: [Error.php:225] Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable [code] 16 [type] Mix\Console\Exception\ErrorException [file] in Unknown on line 0 #0 [internal function]: Mix\Console\Error->appShutdown() #1 {main} [2020-11-10 15:41:50 @39666.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 1 consumers will be discarded ```
发布于5年前 · 3 次浏览 · 来自
提问
ywp
### 问题描述 Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 4.5.7 php8RC3 mac 10.15.7 ### 相关代码 ```php php bin/mix.php api ____ ______ ___ _____ ___ _____ / /_ _____ / __ `__ \/ /\ \/ /__ / __ \/ __ \/ __ \ / / / / / / / /\ \/ _ / /_/ / / / / /_/ / /_/ /_/ /_/_/ /_/\_\ / .___/_/ /_/ .___/ /_/ /_/ Server Name: mix-api System Name: darwin PHP Version: 8.0.0RC3 Swoole Version: 4.5.7 Framework Version: 2.2.16 Listen Addr: 127.0.0.1 Listen Port: 9502 [2020-11-10 15:41:50] API.INFO: [StartCommand.php:84] Server start PHP Fatal error: Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable in Unknown on line 0 Fatal error: Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable in Unknown on line 0 [2020-11-10 15:41:50] API.ERROR: [Error.php:225] Swoole\Coroutine\Http\Server::start(): function 'Swoole\Coroutine\Http\Server::onAccept' is not callable [code] 16 [type] Mix\Console\Exception\ErrorException [file] in Unknown on line 0 #0 [internal function]: Mix\Console\Error->appShutdown() #1 {main} [2020-11-10 15:41:50 @39666.0] WARNING ~Channel (ERRNO 10003): channel is destroyed, 1 consumers will be discarded ```
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2020-11-11
Rango
这是`PHP8`的问题,建议升级更新的版本,或者使用`PHP7.4`
赞
0
回复