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/entry2d.txt', 'entry #2');
25 if (!$zip->status == ZIPARCHIVE::ER_OK) {
26 echo "failed to write zip\n";
28 $zip->close();
30 if (!$zip->open($file)) {
35 var_dump($zip->locateName('entry1.txt'));
36 var_dump($zip->locateName('eNtry2.txt'));
37 var_dump($zip->locateName('eNtry2.txt', ZIPARCHIVE::FL_NOCASE));
38 var_dump($zip->locateName('enTRy2d.txt', ZIPARCHIVE::FL_NOCASE|ZIPARCHIVE::FL_NODIR));
39 $zip->close();