Lines Matching refs:zip
6 if(!extension_loaded('zip')) die('skip');
11 $file = $dirname . '__tmp_oo_delete.zip';
16 $zip = new ZipArchive;
17 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 $zip->close();
28 var_dump($zip);
32 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
36 if ($zip->deleteIndex(0)) {
40 if ($zip->deleteName('entry2.txt')) {
46 if ($zip->deleteName('dir/entry2.txt')) {
52 if (!$zip->deleteIndex(123)) {
55 print_r($zip);
60 $sb = $zip->statIndex(0);
62 $sb = $zip->statIndex(1);
64 $sb = $zip->statIndex(2);
66 $zip->close();
67 unset($zip);