I am trying to set a multi-line comment with ZipArchive.Below is a simplified demo.
<?php
$comment = "File \t Stats\r\n";
$comment .= "Second line ...some another text \r\n";
$zip->setArchiveComment($comment);
I then open the zip file with Winrar on my windows machine and in the comment you can see \r\n
, \t
appearing as is ... indicating that either winrar don't allow this or i wrong set the zipArchive comment.