1<?php 2include dirname(__FILE__) . '/corrupt_zipmaker.php.inc'; 3$a = new corrupt_zipmaker; 4$a->addFile('hi', null, 'hii'); 5$a->addFile('hi2', null, 'hii2', null, null, 'encrypt', 'encrypt'); 6$a->writeZip(dirname(__FILE__) . '/encrypted.zip'); 7$a = new corrupt_zipmaker; 8$a->addFile('hi', null, 'hii'); 9$a->addFile('', null, 'stdin'); 10$a->writeZip(dirname(__FILE__) . '/stdin.zip'); 11$a = new corrupt_zipmaker; 12$a->addFile('hii', null, 'hii', null, null, 'filename_len', 'filename_len'); 13$a->addFile('hi', null, 'hii'); 14$a->writeZip(dirname(__FILE__) . '/truncfilename.zip'); 15$a = new corrupt_zipmaker; 16$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress'); 17$a->writeZip(dirname(__FILE__) . '/compress_unsup1.zip'); 18$a = new corrupt_zipmaker; 19$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 2); 20$a->writeZip(dirname(__FILE__) . '/compress_unsup2.zip'); 21$a = new corrupt_zipmaker; 22$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 3); 23$a->writeZip(dirname(__FILE__) . '/compress_unsup3.zip'); 24$a = new corrupt_zipmaker; 25$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 4); 26$a->writeZip(dirname(__FILE__) . '/compress_unsup4.zip'); 27$a = new corrupt_zipmaker; 28$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 5); 29$a->writeZip(dirname(__FILE__) . '/compress_unsup5.zip'); 30$a = new corrupt_zipmaker; 31$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 6); 32$a->writeZip(dirname(__FILE__) . '/compress_unsup6.zip'); 33$a = new corrupt_zipmaker; 34$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 7); 35$a->writeZip(dirname(__FILE__) . '/compress_unsup7.zip'); 36$a = new corrupt_zipmaker; 37$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 9); 38$a->writeZip(dirname(__FILE__) . '/compress_unsup9.zip'); 39$a = new corrupt_zipmaker; 40$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 10); 41$a->writeZip(dirname(__FILE__) . '/compress_unsup10.zip'); 42$a = new corrupt_zipmaker; 43$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 14); 44$a->writeZip(dirname(__FILE__) . '/compress_unsup14.zip'); 45$a = new corrupt_zipmaker; 46$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 18); 47$a->writeZip(dirname(__FILE__) . '/compress_unsup18.zip'); 48$a = new corrupt_zipmaker; 49$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 19); 50$a->writeZip(dirname(__FILE__) . '/compress_unsup19.zip'); 51$a = new corrupt_zipmaker; 52$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 97); 53$a->writeZip(dirname(__FILE__) . '/compress_unsup97.zip'); 54$a = new corrupt_zipmaker; 55$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 98); 56$a->writeZip(dirname(__FILE__) . '/compress_unsup98.zip'); 57$a = new corrupt_zipmaker; 58$a->addFile('hi', null, 'hii', null, null, 'compress', 'compress', 11); 59$a->writeZip(dirname(__FILE__) . '/compress_unsupunknown.zip'); 60?> 61