Lines Matching refs:zip
5 if(!extension_loaded('zip')) die('skip');
10 $file = $dirname . '__tmp_oo_delete.zip';
15 $zip = new ZipArchive;
16 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
19 $zip->addFromString('entry1.txt', 'entry #1');
20 $zip->addFromString('entry2.txt', 'entry #2');
21 $zip->addFromString('dir/entry2.txt', 'entry #2');
23 if ($zip->status == ZIPARCHIVE::ER_OK) {
24 $zip->close();
27 var_dump($zip);
31 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
35 if ($zip->deleteIndex(0)) {
39 if ($zip->deleteName('entry2.txt')) {
45 if ($zip->deleteName('dir/entry2.txt')) {
51 if (!$zip->deleteIndex(123)) {
54 print_r($zip);
59 $sb = $zip->statIndex(0);
61 $sb = $zip->statIndex(1);
63 $sb = $zip->statIndex(2);
66 @$zip->close();
67 unset($zip);