Lines Matching refs:zip
5 if (!extension_loaded('zip')) die('skip');
10 $name = __DIR__ . '/withattr.zip';
13 $zip = new ZipArchive;
14 $r = $zip->open($name, ZIPARCHIVE::CREATE);
15 $zip->addFromString('foo.txt', 'foo');
16 $zip->addFromString('bar.txt', 'bar');
17 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_UNIX, 123));
18 $id = $zip->locateName('bar.txt');
19 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_VFAT, 234));
20 $zip->close();
23 $r = $zip->open($name);
24 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b), $a, $b);
25 $id = $zip->locateName('bar.txt');
26 var_dump($zip->getExternalAttributesIndex($id, $a, $b), $a, $b);
29 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_DOS, 345));
30 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_AMIGA, 456));
32 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b), $a, $b);
33 var_dump($zip->getExternalAttributesIndex($id, $a, $b), $a, $b);
35 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
36 var_dump($zip->getExternalAttributesIndex($id, $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
38 $zip->close();
43 $name = __DIR__ . '/withattr.zip';