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