Lines Matching refs:z
4 $z = new ZipArchive; variable
5 $z->open('t.zip');
7 print_r($z);
9 for ($i=0; $i<$z->numFiles; $i++) {
11 print_r($z->getCommentIndex($i));
14 echo "foobar/ " . $z->getCommentName('foobar/') . "\n";
16 echo "Archive comment: " . $z->getArchiveComment() . "\n";
19 $z->setCommentIndex(1, 'new comment idx 1');
20 $z->setCommentName('foobar/', 'new comment foobar/');
22 $z->setArchiveComment( 'new archive comment');
24 for ($i=0; $i<$z->numFiles; $i++) {
26 print_r($z->getCommentIndex($i));
30 echo $z->getCommentName('foobar/') . "\n";
33 echo $z->getCommentName('foobar/', ZIPARCHIVE::FL_UNCHANGED) . "\n";
35 echo "Archive comment: " . $z->getArchiveComment() . "\n";
36 echo "Archive comment (original): " . $z->getArchiveComment(ZIPARCHIVE::FL_UNCHANGED) . "\n";