file_put_contents('badzip.zip', pack('IvvvvIIv',
0x06054b50, // End of central directory signature = 0x06054b50
0, // Number of this disk
0, // Disk where central directory starts
0, // Number of central directory records on this disk
0, // Total number of central directory records
0, // Size of central directory (bytes)
0, // Offset of start of central directory, relative to start of archive
0 // Comment length (n)
));
$z = new ZipArchive();