Lines Matching refs:zip
6 if (!extension_loaded('zip')) die('skip');
11 $name = __DIR__ . '/withattr.zip';
14 $zip = new ZipArchive;
15 $r = $zip->open($name, ZIPARCHIVE::CREATE);
16 $zip->addFromString('foo.txt', 'foo');
17 $zip->addFromString('bar.txt', 'bar');
18 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_UNIX, 123));
19 $id = $zip->locateName('bar.txt');
20 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_VFAT, 234));
21 $zip->close();
24 $r = $zip->open($name);
25 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b), $a, $b);
26 $id = $zip->locateName('bar.txt');
27 var_dump($zip->getExternalAttributesIndex($id, $a, $b), $a, $b);
30 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_DOS, 345));
31 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_AMIGA, 456));
33 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b), $a, $b);
34 var_dump($zip->getExternalAttributesIndex($id, $a, $b), $a, $b);
36 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
37 var_dump($zip->getExternalAttributesIndex($id, $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
39 $zip->close();
44 $name = __DIR__ . '/withattr.zip';