Fix issue with ZipArchive integration

Large files could fail to be added due to  a problem in how the PHP
ZipArchive would handle open temp files.