Lines Matching refs:zip
6 if(!extension_loaded('zip')) die('skip');
12 $file = $dirname . '__tmp_oo_rename.zip';
16 $zip = new ZipArchive;
17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
21 $zip->addFromString('entry1.txt', 'entry #1');
22 $zip->addFromString('entry2.txt', 'entry #2');
23 $zip->addFromString('dir/entry2.txt', 'entry #2');
25 if (!$zip->status == ZIPARCHIVE::ER_OK) {
26 var_dump($zip);
30 $zip->close();
32 if (!$zip->open($file)) {
36 dump_entries_name($zip);
39 if (!$zip->renameIndex(0, 'ren_entry1.txt')) {
43 if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) {
46 dump_entries_name($zip);
47 $zip->close();