thinkphp5.1框架使用workerman报错

qihailong

问题描述

thinkphp5.1框架使用 workerman版本

workerman版本 3.5.34

php think worker:server 启动服务的时候提示报错

程序代码

报错信息

[think\exception\ThrowableError]                                                         
  Fatal error: stream_select(): Argument #4 ($seconds) must be greater than or equal to 0  

Exception trace:
 () at D:\mp_server\vendor\workerman\workerman\Events\Select.php:271
 stream_select() at D:\mp_server\vendor\workerman\workerman\Events\Select.php:271
 Workerman\Events\Select->loop() at D:\mp_server\vendor\workerman\workerman\Worker.php:2410
 Workerman\Worker->run() at D:\mp_server\vendor\workerman\workerman\Worker.php:1406
 Workerman\Worker::forkWorkersForWindows() at D:\mp_server\vendor\workerman\workerman\Worker.php:1349
 Workerman\Worker::forkWorkers() at D:\mp_server\vendor\workerman\workerman\Worker.php:547
 Workerman\Worker::runAll() at D:\mp_server\vendor\topthink\think-worker\src\command\Server.php:75
 think\worker\command\Server->execute() at D:\mp_server\thinkphp\library\think\console\Command.php:175
 think\console\Command->run() at D:\mp_server\thinkphp\library\think\Console.php:675
 think\Console->doRunCommand() at D:\mp_server\thinkphp\library\think\Console.php:261
 think\Console->doRun() at D:\mp_server\thinkphp\library\think\Console.php:198
 think\Console->run() at D:\mp_server\thinkphp\library\think\Console.php:115
 think\Console::init() at D:\mp_server\think:24

截图报错信息里报错文件相关代码

截图

操作系统及workerman/webman等框架组件具体版本

windows10操作系统
workerman版本 3.5.34

204 2 0
2个回答

walkor

workerman版本太低了

  • 暂无评论
释永战

建议使用tp6.1

  • 暂无评论
🔝