gpt4 book ai didi

php - fclose() : Argument #1 ($stream) must be of type resource, bool 给定

转载 作者:行者123 更新时间:2023-12-04 02:28:01 26 4
gpt4 key购买 nike

我刚刚重新启动了我的 laravel 8.0 项目,我得到了以下错误,请问可能是什么问题,每当我运行“PHP artisan serve”时都会发生这种情况

   TypeError

fclose(): Argument #1 ($stream) must be of type resource, bool given

at C:\Users\owner\Laravel-App\test-app\vendor\symfony\process\Pipes\WindowsPip
es.php:74
70▕ fclose($this->lockHandles[$pipe]);
71▕ }
72▕ $this->lockHandles[$pipe] = $h;
73▕
➜ 74▕ if (!fclose(fopen($file, 'w')) || !$h = fopen($file
, 'r')) {
75▕ flock($this->lockHandles[$pipe], \LOCK_UN);
76▕ fclose($this->lockHandles[$pipe]);
77▕ unset($this->lockHandles[$pipe]);
78▕ continue 2;
continue 2;

1 C:\Users\owner\Laravel-App\test-app\vendor\symfony\process\Pipes\WindowsPi
pes.php:74
fclose()

2 C:\Users\owner\Laravel-App\test-app\vendor\symfony\process\Process.php:130
4
Symfony\Component\Process\Pipes\WindowsPipes::__construct()

最佳答案

您可以打开任务管理器然后查找 CLI(带有 php Logo )后台进程,如果找到则杀死任务

关于php - fclose() : Argument #1 ($stream) must be of type resource, bool 给定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66109427/

26 4 0