When a file is set to be added to the archive, PHP will lock the file. The
lock is only released once the ZipArchive object
has been closed, either via ZipArchive::close() or
the ZipArchive object being destroyed. This may
prevent you from being able to delete the file being added until after the
lock has been released.