Laravel Storage :: apend()-打开太多文件

时间:2019-06-10 14:44:20

标签: laravel storage

我正在遍历记录,并且在每次迭代中,我都在调用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

0 个答案:

没有答案