Lines Matching refs:zip
5 if(!extension_loaded('zip')) die('skip');
10 $filename = $thisdir . "/bug47667.zip";
12 $zip = new ZipArchive();
13 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
14 exit("Unable to open the zip file");
16 $zip->addFromString('foo.txt', 'foo bar foobar');
17 $zip->close();
21 $zip = new ZipArchive();
22 if ($zip->open($filename, ZipArchive::OVERWRITE) !== true) {
23 exit("Unable to open the zip file");
25 $zip->addFromString("foo_{$i}.txt", 'foo bar foobar');
26 $zip->close();
29 $zip = new ZipArchive();
30 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
31 exit("Unable to open the zip file");
34 echo "files: " , $zip->numFiles;
35 $zip->close();