国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

thinkphp6 php8 報(bào)錯(cuò) fclose(): Argument #1 ($stream) must be of type resource, null given

宙斯盾

thinkphp6 php8 報(bào)錯(cuò) fclose(): Argument #1 ($stream) must be of type resource, null given
//啟動(dòng)代碼
protected function init(Input $input, Output $output)
{
global $argv;
if ($input->hasOption('i'))
$this->interval = floatval($input->getOption('i'));
$argv[1] = $input->getArgument('status') ?: 'start';
if ($input->hasOption('d')) {
$argv[2] = '-d';
} else {
unset($argv[2]);
}
}

這塊是哪里報(bào)錯(cuò)了?
4739 2 0
2個(gè)回答

xiuwang

workerman版本太低

  • 暫無評(píng)論
毛豆Like

解決辦法 workerman 里面的
Worker類 resetStd 方法
大概 1243 行左右,里面有幾句
原來大概是
\fclose($STDOUT);
\fclose($STDERR);
\fclose(\STDOUT);
\fclose(\STDERR);
改成下面這種
if ($STDOUT) {
\fclose($STDOUT);
}
if ($STDERR) {
\fclose($STDERR);
}
if (\is_resource(\STDOUT)) {
\fclose(\STDOUT);
}
if (\is_resource(\STDERR)) {
\fclose(\STDERR);
}
截圖

  • 暫無評(píng)論
年代過于久遠(yuǎn),無法發(fā)表回答
??