Lines Matching refs:zip
4 zip
16 $file = $dirname . '__tmp_oo_set_mtime.zip';
20 $zip = new ZipArchive;
21 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
25 $zip->addFromString('foo', 'entry #1');
26 $zip->addFromString('bar', 'entry #2');
32 $s = $zip->statName('foo');
34 var_dump($zip->setMtimeName('foo', $t1));
35 $s = $zip->statName('foo');
39 $s = $zip->statIndex(1);
41 var_dump($zip->setMtimeIndex(1, $t2));
42 $s = $zip->statIndex(1);
45 if (!$zip->status == ZIPARCHIVE::ER_OK) {
46 echo "failed to write zip\n";
48 $zip->close();
50 if (!$zip->open($file)) {
56 $s = $zip->statIndex(0);
60 $s = $zip->statName('bar');
63 $zip->close();