think-queue 监听报错

浏览:3292 发布日期:2018/06/22 分类:ThinkPHP5专区 关键字: think-queue tp5
使用数据库驱动,并且任务已经写入数据库了,在执行监听命令后报错.....
在家测试没问题的,带着代码到公司的环境就报错了...
环境哪里出了问题啊?
composer 用的都是国内镜像
xampp的php7.2环境
php think queue:listen



[think\exception\ErrorException]
count(): Parameter must be an array or an object that implements Countable



PHP Fatal error: Uncaught think\exception\ErrorException: count(): Parameter must be an array or an object that implements Countable in D:\soft\xam
pp\htdocs\tp52\thinkphp\library\think\process\pipes\Windows.php:199
Stack trace:
#0 [internal function]: think\Error::appError(2, 'count(): Parame...', 'D:\\soft\\xampp\\h...', 199, Array)
#1 D:\soft\xampp\htdocs\tp52\thinkphp\library\think\process\pipes\Windows.php(199): count(NULL)
#2 D:\soft\xampp\htdocs\tp52\thinkphp\library\think\process\pipes\Windows.php(97): think\process\pipes\Windows->write(false, false)
#3 D:\soft\xampp\htdocs\tp52\thinkphp\library\think\Process.php(1079): think\process\pipes\Windows->readAndWrite(false, false)
#4 D:\soft\xampp\htdocs\tp52\thinkphp\library\think\Process.php(1027): think\Process->readPipes(false, false)
#5 D:\soft\xampp\htdocs\tp52\thinkphp\library\think\Process.php(578): think\Process->updateStatus(false)
#6 D:\soft\xampp\htdocs\tp52\thinkphp\library\think\Process.php(619): think\Process->isRunning()
#7 D:\soft\xampp\htdocs\tp52\thinkphp\ in D:\soft\xampp\htdocs\tp52\thinkphp\library\think\process\pipes\Windows.php on line 199

寻求大神帮助....
最佳答案
评论( 相关
后面还有条评论,点击查看>>