/PHP-5.4/ext/zip/tests/ |
H A D | bug51353.phpt | 5 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 D | bug7658.phpt | 6 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 D | zip_entry_open.phpt | 6 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 D | zip_entry_compressedsize.phpt | 6 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 D | zip_entry_filesize.phpt | 6 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 D | zip_read.phpt | 6 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 D | zip_entry_read.phpt | 6 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 D | bug53579.phpt | 6 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 D | oo_stream.phpt | 6 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 D | zip_entry_compressionmethod.phpt | 6 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 D | zip_entry_name.phpt | 6 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 D | zip_close.phpt | 6 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 D | bug64342_0.phpt | 5 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 D | zip_open_error.phpt | 8 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";
|
H A D | bug7214.phpt | 6 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);
|
/PHP-5.4/ext/phar/tests/zip/ |
H A D | corrupt_001.phpt | 2 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 D | notphar.phpt | 2 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 D | bzip2.phpt | 2 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 D | alias_acrobatics.phpt | 10 $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 D | corrupt_003.phpt | 2 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 D | getalias.phpt | 2 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 D | corrupt_005.phpt | 2 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.4/ext/phar/tests/zip/files/ |
H A D | corrupt2.php.inc | 6 $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 D | corrupt_count1.php.inc | 6 $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.4/ext/fileinfo/tests/ |
H A D | finfo_file_stream_001.phpt | 5 <?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"
|