Lines Matching refs:z
5 $z = new ZipArchive; variable
6 $z->open('t.zip');
8 print_r($z);
10 for ($i=0; $i<$z->numFiles; $i++) {
12 print_r($z->getCommentIndex($i));
15 echo "foobar/ " . $z->getCommentName('foobar/') . "\n";
17 echo "Archive comment: " . $z->getArchiveComment() . "\n";
20 $z->setCommentIndex(1, 'new comment idx 1');
21 $z->setCommentName('foobar/', 'new comment foobar/');
23 $z->setArchiveComment( 'new archive comment');
25 for ($i=0; $i<$z->numFiles; $i++) {
27 print_r($z->getCommentIndex($i));
31 echo $z->getCommentName('foobar/') . "\n";
34 echo $z->getCommentName('foobar/', ZIPARCHIVE::FL_UNCHANGED) . "\n";
36 echo "Archive comment: " . $z->getArchiveComment() . "\n";
37 echo "Archive comment (original): " . $z->getArchiveComment(ZIPARCHIVE::FL_UNCHANGED) . "\n";