Lines Matching refs:zip
5 if(!extension_loaded('zip')) die('skip');
11 $file = $dirname . '__tmp_oo_rename.zip';
15 $zip = new ZipArchive;
16 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
22 $zip->addFromString('dir/entry2.txt', 'entry #2');
24 if (!$zip->status == ZIPARCHIVE::ER_OK) {
25 var_dump($zip);
29 $zip->close();
31 if (!$zip->open($file)) {
35 dump_entries_name($zip);
38 if (!$zip->renameIndex(0, 'ren_entry1.txt')) {
42 if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) {
45 dump_entries_name($zip);
46 $zip->close();