我正在遍历记录,并且在每次迭代中,我都在调用Laravel的存储方法:
Storage::append($path, $string);
但是,经过几百次迭代之后,我遇到了一个错误:
ErrorException: failed to open stream: Too many open files
#code: 0
#file: "./vendor/league/flysystem/src/Adapter/Local.php"
#line: 223
#severity: E_WARNING
Laravel追加后是否自动关闭文件句柄?
Laravel框架5.7.27