Bug \XF\Util\File::copyFileToAbstractedPath causes failure in PHP8.0+ with S3-Compatable Storages

There is a bug in this version
V

VersoBit

Guest
Reporting back on an bug that was previously fixed, that has now become "unfixed" by deprecation of the old @ Error Control Operator functionality on PHP8.0+

Let me break this down, recently we were working to Integrate with Cloudflare R2, which is a fully compatible S3 API; however R2 runs it's own fclose similar to Azure Blob Storage; this means that when fclose() is run within the copyFileToAbstractedPath method, it would throw an error - while this behavior...

Read more

Continue reading...