Home
last modified time | relevance | path

Searched refs:zip (Results 26 – 50 of 258) sorted by relevance

1234567891011

/PHP-5.5/ext/zip/tests/
H A Dbug51353.phpt5 if(!extension_loaded('zip')) die('skip');
17 $zip = new ZipArchive;
18 $r = $zip->open("$base_path/51353.zip", ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE);
21 $zip->addFromString("$i.txt", '1');
23 $zip->close();
28 $zip = new ZipArchive;
29 $r = $zip->open("$base_path/51353.zip");
31 $zip->extractTo("$base_path/51353_unpack");
32 $zip->close();
45 unlink("$base_path/51353.zip");
H A Dbug7658.phpt6 if(!extension_loaded('zip')) die('skip');
30 $zip = new ZipArchive();
32 if(!$zip->open($file)) {
37 $zip->deleteName('content.xml');
38 $zip->addFile($dirname . "bug7658.xml","content.xml");
39 $zip->close();
41 $zip->open($file);
43 for($i=0; $i < $zip->numFiles; $i++) {
44 $sb = $zip->statIndex($i);
50 unset($zip);
H A Dzip_entry_open.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 $entry = zip_read($zip);
12 echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure";
14 zip_close($zip);
H A Dzip_entry_compressedsize.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 if (!is_resource($zip)) die("Failure");
13 while ($entry = zip_read($zip)) {
16 zip_close($zip);
H A Dzip_entry_filesize.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 if (!is_resource($zip)) die("Failure");
13 while ($entry = zip_read($zip)) {
16 zip_close($zip);
H A Dzip_read.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 if (!is_resource($zip)) die("Failure");
13 while ($entry = zip_read($zip)) {
16 zip_close($zip);
H A Dzip_entry_read.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 $entry = zip_read($zip);
12 if (!zip_entry_open($zip, $entry, "r")) die("Failure");
15 zip_close($zip);
H A Dzip_entry_compressionmethod.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 if (!is_resource($zip)) die("Failure");
13 while ($entry = zip_read($zip)) {
16 zip_close($zip);
H A Dzip_entry_name.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 if (!is_resource($zip)) die("Failure");
13 while ($entry = zip_read($zip)) {
16 zip_close($zip);
H A Dbug53579.phpt6 if(!extension_loaded('zip')) die('skip');
11 $file = $dirname . 'test_with_comment.zip';
13 $zip = new ZipArchive;
14 if (!$zip->open($file)) {
17 $fp = $zip->getStream('foo');
24 $zip->close();
28 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
H A Doo_stream.phpt6 if(!extension_loaded('zip')) die('skip');
11 $file = $dirname . 'test_with_comment.zip';
13 $zip = new ZipArchive;
14 if (!$zip->open($file)) {
17 $fp = $zip->getStream('foo');
27 $zip->close();
31 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
H A Dzip_close.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11 if (!is_resource($zip)) die("Failure");
12 zip_close($zip);
H A Dbug64342_0.phpt5 if(!extension_loaded('zip')) die('skip');
10 $zip = new ZipArchive;
11 $res = $zip->open(dirname(__FILE__) . '/bug64342.zip', ZipArchive::CREATE);
15 $res = $zip->addFile($f);
21 $res = $zip->close();
37 @unlink(dirname(__FILE__) . '/bug64342.zip');
H A Dbug7214.phpt6 if(!extension_loaded('zip')) die('skip');
10 $zip = zip_open(dirname(__FILE__)."/binarynull.zip");
11 if (!is_resource($zip)) die("Failure");
13 $entry = zip_read($zip);
H A Dzip_open_error.phpt8 if(!extension_loaded('zip')) die('skip');
13 $zip = zip_open("");
16 $zip = zip_open("i_dont_care_about_this_parameter", "this_is_one_to_many");
19 $zip = zip_open("/non_exisitng_directory/test_procedural.zip");
20 echo is_resource($zip) ? "OK" : "Failure";
/PHP-5.5/ext/phar/tests/zip/
H A Dcorrupt_001.phpt2 Phar: corrupted zip (count mismatch)
9 new PharData(dirname(__FILE__) . '/files/count1.zip');
14 new PharData(dirname(__FILE__) . '/files/count2.zip');
21 phar error: corrupt zip archive, conflicting file count in end of central directory record in zip-b…
22 phar error: corrupt zip archive, conflicting file count in end of central directory record in zip-b…
H A Dnotphar.phpt2 Phar: a non-executable zip with no stub named .phar.zip
10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
13 copy(dirname(__FILE__) . '/files/zip.zip', $fname);
19 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
23 …har.phar.zip/.phar/stub.php): failed to open stream: '%snotphar.phar.zip' is not a phar archive. U…
H A Dbzip2.phpt2 Phar: process bzip2-compressed zip entry
10 $a = new PharData(dirname(__FILE__) . '/files/bzip2.zip');
27 $a->writeZip(dirname(__FILE__) . '/encrypted.zip');
31 $a->writeZip(dirname(__FILE__) . '/stdin.zip');
35 $a->writeZip(dirname(__FILE__) . '/truncfilename.zip');
38 $a->writeZip(dirname(__FILE__) . '/compress_unsup1.zip');
41 $a->writeZip(dirname(__FILE__) . '/compress_unsup2.zip');
44 $a->writeZip(dirname(__FILE__) . '/compress_unsup3.zip');
47 $a->writeZip(dirname(__FILE__) . '/compress_unsup4.zip');
50 $a->writeZip(dirname(__FILE__) . '/compress_unsup5.zip');
[all …]
H A Dalias_acrobatics.phpt10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
11 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.phar.zip';
38 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
39 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip');
42 …ady used for archive "%salias_acrobatics.phar.zip" cannot be overloaded with "%salias_acrobatics.2…
44 phar error: Unable to add zip-based phar "%salias_acrobatics.2.phar.zip" with implicit alias, alias…
45 …eady used for archive "%salias_acrobatics.phar.zip" cannot be overloaded with "%salias_acrobatics.…
H A Dcorrupt_003.phpt2 Phar: corrupted zip (truncated file comment)
9 new PharData(dirname(__FILE__) . '/files/filecomment.zip');
16 phar error: corrupt zip archive, zip file comment truncated in zip-based phar "%sfilecomment.zip"
H A Dgetalias.phpt2 Phar: getAlias() with an existing phar.zip
10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
12 // sanity check with a virgin phar.zip
17 copy(dirname(__FILE__) . '/files/metadata.phar.zip', $fname);
19 // existing phar.zip, no alias set
28 // existing phar.zip, alias set
48 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
52 string(%d) "%sgetalias.phar.zip"
53 string(%d) "%sgetalias.phar.zip"
56 Cannot set alias ".phar/alias.txt" directly in phar "%sgetalias.phar.zip", use setAlias
H A Dcorrupt_005.phpt2 Phar: encrypted zip
9 new PharData(dirname(__FILE__) . '/files/encrypted.zip');
16 phar error: Cannot process encrypted zip files in zip-based phar "%sencrypted.zip"
/PHP-5.5/ext/phar/tests/zip/files/
H A Dcorrupt2.php.inc6 $a->writeZip(dirname(__FILE__) . '/encrypted.zip');
10 $a->writeZip(dirname(__FILE__) . '/stdin.zip');
14 $a->writeZip(dirname(__FILE__) . '/truncfilename.zip');
17 $a->writeZip(dirname(__FILE__) . '/compress_unsup1.zip');
20 $a->writeZip(dirname(__FILE__) . '/compress_unsup2.zip');
23 $a->writeZip(dirname(__FILE__) . '/compress_unsup3.zip');
26 $a->writeZip(dirname(__FILE__) . '/compress_unsup4.zip');
29 $a->writeZip(dirname(__FILE__) . '/compress_unsup5.zip');
32 $a->writeZip(dirname(__FILE__) . '/compress_unsup6.zip');
35 $a->writeZip(dirname(__FILE__) . '/compress_unsup7.zip');
[all …]
H A Dcorrupt_count1.php.inc6 $a->writeZip(dirname(__FILE__) . '/count1.zip', 'count1');
7 $a->writeZip(dirname(__FILE__) . '/count2.zip', 'count2');
8 $a->writeZip(dirname(__FILE__) . '/nozipend.zip', 'none');
9 $a->writeZip(dirname(__FILE__) . '/filecomment.zip', 'comment');
10 $a->writeZip(dirname(__FILE__) . '/cdir_offset.zip', 'cdir_offset');
/PHP-5.5/ext/fileinfo/tests/
H A Dfinfo_file_stream_001.phpt5 <?php if (!extension_loaded('zip')) { die("skip"); } ?>
12 $zip = __DIR__ . "/resources/dir.zip";
13 $stream = "zip://" . __DIR__ . "/resources/dir.zip";
18 finfo_file($fp, $zip),
24 string(15) "application/zip"

Completed in 40 milliseconds

1234567891011