think-worker
think-worker copied to clipboard
Workerman extend for ThinkPHP
框架版本:thinkphp8 php版本:>=php8.0 在liunx下执行命令出错 报错1:执行php think hello start --mode d Implicit conversion from float 2999991.1785125732 to int loses precision 解决:Workerman\Events\Select::class -> loop() 274行_selectTimeout属性传递到usleep(int)函数精度问题导致,使用int强转一下 usleep((int)$this->_selectTimeout) 报错2:fclose(): Argument #1 ($stream) must be of...
https://github.com/top-think/think-worker/blob/9ba54333f337ee2c3f06054bb896bba9696d926c/src/Application.php#L44 这里未对 download()->send() 进行处理,在 tp6 中,File 返回会有一个 while 处理 ob 的过滤,会造成 内容输出到 cli 上。  建议在实例 Res 对象时使用 make 方式,可以通过注入的方式替换原有返回对象。
我就是加个日志 然后reload 日志根本没有生效 restart 生效了 啥区别啊 你们生产环境下都是怎么使用的?比如更新代码了 是restart? 
workerman不用4.0么
[Exception] Workerman[think] stopping ... PHP Fatal error: Declaration of think\worker\Application::runningInConsole() must be compatible with think\App::runningInConsole(): bool in /www/wwwroot/th.tiantapay.com/vendor/topthink/think-worker/src/Application.php on line 107 Fatal error: Declaration of think\worker\Application::runningInConsole() must be compatible with...
这两个bug能修复下么
系统:win10 PHP:7.2 版本:`topthink/think-worker": "2.0.*` 启动:`php think worker` 报错:`Undefined index: app_path` `vendor\topthink\think-worker\src\command\Worker.php` 63 行 `$this->config = config('worker');` 读取不到配置,导致 `$worker->setAppPath($this->config['app_path']);`报错