Lines Matching refs:zip
4 zip
9 $file = $dirname . 'oo_rename.zip';
13 $zip = new ZipArchive;
14 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
20 $zip->addFromString('dir/entry2.txt', 'entry #2');
22 if (!$zip->status == ZIPARCHIVE::ER_OK) {
23 var_dump($zip);
27 $zip->close();
29 if (!$zip->open($file)) {
33 if (!verify_entries($zip, [
43 if (!$zip->renameIndex(0, 'ren_entry1.txt')) {
47 if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) {
51 if (!verify_entries($zip, [
60 $zip->close();