更新时间:2021-12-04 00:51:30
我发现我可以通过将传递给 fwrite() 的字符串长度限制为 8192 来解决这个问题,这可以防止 fwrite() 警告.
I have found I can get around this problem by restricting the length of the string passed to fwrite() to 8192, which prevents fwrite() warning.
因此,对于您示例中的代码,我会尝试将 substr() 调用更改为:
So for the code in your example I would try changing the substr() call to:
$buffer = substr($buffer, $len, 8192);