Lines Matching refs:zip
6 zip
10 $file = $dirname . 'oo_unchangeIndex.zip';
11 copy($dirname.'test.zip', $file);
15 $zip = new ZipArchive();
16 $zip->open($file);
17 var_dump($zip->getNameIndex(0));
18 var_dump($zip->getCommentIndex(0));
20 $zip->renameIndex(0, 'baz filename');
21 $zip->setCommentIndex(0, 'baz comment');
23 var_dump($zip->getNameIndex(0));
24 var_dump($zip->getCommentIndex(0));
26 $zip->unchangeIndex(0);
28 var_dump($zip->getNameIndex(0));
29 var_dump($zip->getCommentIndex(0));
31 $zip->close();
37 unlink(__DIR__.'/oo_unchangeIndex.zip');