Implemented fclose to @fclose


Well-known member
I'm working on a BackBlaze integration and the library I'm using seems to automatically close the file pointer after copying a file, so the fclose($fp) instruction inside the copyFileToAbstractedPath() method in XF\Util\File.php fails with a fclose(): supplied resource is not a valid stream resource error.

Can you prepend this instruction with an Error Control Operator just like you do on the copyAbstractedPathToTempFile() method?

@Mike @Chris D