Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thinkphp8 使用think-worker扩展,提示workerman版本低的问题,希望提高对workerman高版本的支持 #60

Closed
majingsign opened this issue Feb 2, 2024 · 2 comments

Comments

@majingsign
Copy link

框架版本: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 type resource, null given
解决:vendor/workerman/workerman/Worker.php,1245-1248行的fclose()函数加上判断
if ($STDOUT) {
\fclose($STDOUT);
}
if ($STDERR) {
\fclose($STDERR);
}
if (is_resource(\STDOUT)) {
\fclose(\STDOUT);
}
if (is_resource(\STDERR)) {
\fclose(\STDERR);
}

希望尽快提高workerman的版本,并修改部分代码,谢谢~~~

@chenhaitang
Copy link

什么时候支持workerman4.0呀 @liu21st

@LronBoy
Copy link

LronBoy commented Dec 6, 2024

什么时候支持workerman4.0呀 @liu21st

再不更新workerman5.0都要出来了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants