Does anybody know why this code is adding itself (i.e. an empty zip file of same name, full path) to the zip file?
$fn="data/test_01.zip";
$zip = new ZipArchive();
if($zip->open($fn,ZipArchive::OVERWRITE)!==TRUE){
echo "cannot open ".$fn;
}
$zip->addFromString("myfile.txt","Some content");
$zip->addEmptyDir("testdir");
$zip->close();
I've fully updated my system and restarted services