Lines Matching refs:zip
4 zip
8 $name = __DIR__ . '/withattr.zip';
11 $zip = new ZipArchive;
12 $r = $zip->open($name, ZIPARCHIVE::CREATE);
13 $zip->addFromString('foo.txt', 'foo');
14 $zip->addFromString('bar.txt', 'bar');
15 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_UNIX, 123));
16 $id = $zip->locateName('bar.txt');
17 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_VFAT, 234));
18 $zip->close();
21 $r = $zip->open($name);
22 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b), $a, $b);
23 $id = $zip->locateName('bar.txt');
24 var_dump($zip->getExternalAttributesIndex($id, $a, $b), $a, $b);
27 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_DOS, 345));
28 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_AMIGA, 456));
30 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b), $a, $b);
31 var_dump($zip->getExternalAttributesIndex($id, $a, $b), $a, $b);
33 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
34 var_dump($zip->getExternalAttributesIndex($id, $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
36 $zip->close();
41 $name = __DIR__ . '/withattr.zip';