Lines Matching refs:zip
5 if(!extension_loaded('zip')) die('skip');
12 $file = $dirname . '__tmp_oo_addfile.zip';
14 copy($dirname . 'test.zip', $file);
16 $zip = new ZipArchive;
17 if (!$zip->open($file)) {
20 if (!$zip->addFile($dirname . 'utils.inc', 'test.php')) {
23 if (!$zip->addFile($dirname . 'utils.inc', 'mini.txt', 12, 34)) {
26 if ($zip->status == ZIPARCHIVE::ER_OK) {
27 dump_entries_name($zip);
28 $zip->close();
32 if (!$zip->open($file)) {
35 var_dump(strlen($zip->getFromName('test.php')) == filesize($dirname . 'utils.inc'));
36 var_dump(strlen($zip->getFromName('mini.txt')) == 34);