/PHP-8.0/ext/zip/tests/ |
H A D | zip_close.phpt | 5 if(!extension_loaded('zip')) die('skip'); 9 $zip = zip_open(__DIR__."/test_procedural.zip"); 10 if (!is_resource($zip)) die("Failure"); 11 zip_close($zip);
|
H A D | 001.phpt | 2 Check for zip presence 4 <?php if (!extension_loaded("zip")) print "skip"; ?> 7 echo "zip extension is available"; 10 zip extension is available
|
H A D | bug64342_0.phpt | 5 if(!extension_loaded('zip')) die('skip'); 10 $zip = new ZipArchive; 11 $res = $zip->open(__DIR__ . '/bug64342.zip', ZipArchive::CREATE); 15 $res = $zip->addFile($f); 21 $res = $zip->close(); 37 @unlink(__DIR__ . '/bug64342.zip');
|
H A D | zip_entry_open.phpt | 5 if(!extension_loaded('zip')) die('skip'); 9 $zip = zip_open(__DIR__."/test_procedural.zip"); 10 $entry = zip_read($zip); 11 echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure"; 13 zip_close($zip);
|
H A D | bug40228.phpt | 4 <?php if (!extension_loaded("zip")) print "skip"; ?> 8 $arc_name = __DIR__ . "/bug40228.zip"; 9 $zip = new ZipArchive; 10 $zip->open($arc_name, ZIPARCHIVE::CREATE); 11 $zip->extractTo($dest);
|
H A D | zip_open.phpt | 5 if(!extension_loaded('zip')) die('skip'); 9 $zip = zip_open(__DIR__."/test_procedural.zip"); 11 echo is_resource($zip) ? "OK" : "Failure";
|
H A D | bug40228-mb.phpt | 4 <?php if (!extension_loaded("zip")) print "skip"; ?> 8 $arc_name = __DIR__ . "/bug40228私はガラスを食べられます.zip"; 9 $zip = new ZipArchive; 10 $zip->open($arc_name, ZIPARCHIVE::CREATE); 11 $zip->extractTo($dest);
|
H A D | bug80833.phpt | 5 if (!extension_loaded('zip')) die("skip zip extension not available"); 11 $create_zip->open(__DIR__ . "/80833.zip", ZipArchive::CREATE); 21 'zip' => [ 26 var_dump(file_get_contents("zip://" . __DIR__ . "/80833.zip#test.txt", false, $c)); 30 $extract_zip->open(__DIR__ . "/80833.zip", ZipArchive::RDONLY); 49 @unlink(__DIR__ . "/80833.zip"); 56 Warning: stream_get_contents(): Zip stream error: Containing zip archive was closed in %s
|
H A D | zip_entry_read.phpt | 5 if(!extension_loaded('zip')) die('skip'); 9 $zip = zip_open(__DIR__."/test_procedural.zip"); 10 $entry = zip_read($zip); 11 if (!zip_entry_open($zip, $entry, "r")) die("Failure"); 14 zip_close($zip);
|
H A D | zip_read.phpt | 5 if(!extension_loaded('zip')) die('skip'); 9 $zip = zip_open(__DIR__."/test_procedural.zip"); 10 if (!is_resource($zip)) die("Failure"); 12 while ($entry = zip_read($zip)) { 15 zip_close($zip);
|
H A D | bug14962.phpt | 5 if(!extension_loaded('zip')) die('skip'); 14 $za->open($dir . '/__14962.zip', ZIPARCHIVE::CREATE); 18 if (!is_file($dir . "/__14962.zip")) { 22 $za->open($dir . '/__14962.zip'); 30 unlink($dir . '/' . '__14962.zip');
|
H A D | bug53603.phpt | 5 if(!extension_loaded('zip')) die('skip'); 21 $file = $dirname . 'test_with_comment.zip'; 22 $zip = new ZipArchive; 23 if ($zip->open($file) !== TRUE) { 28 $a = $zip->extractTo('teststream://test');
|
H A D | zip_open_error.phpt | 8 if(!extension_loaded('zip')) die('skip'); 14 $zip = zip_open(""); 20 $zip = zip_open("/non_exisitng_directory/test_procedural.zip"); 21 echo is_resource($zip) ? "OK" : "Failure";
|
/PHP-8.0/ext/zip/examples/ |
H A D | oldapi.php | 3 $zip = zip_open('examples/test1.zip'); variable 4 var_dump($zip); 6 if ($zip) { 8 while ($zip_entry = zip_read($zip)) {
|
/PHP-8.0/ext/phar/tests/zip/ |
H A D | corrupt_010.phpt | 2 Phar: unable to process zip (zip spanning multiple archives) 8 new PharData(__DIR__ . '/files/disknumber.zip'); 14 …ror: split archives spanning multiple zips cannot be processed in zip-based phar "%sdisknumber.zip"
|
H A D | phar_setsignaturealgo2.phpt | 2 Phar::setSupportedSignatures() with hash, zip-based 13 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 14 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip'; 15 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.phar.zip'; 16 $fname4 = __DIR__ . '/' . basename(__FILE__, '.php') . '.4.phar.zip'; 17 $fname5 = __DIR__ . '/' . basename(__FILE__, '.php') . '.5.phar.zip'; 18 $fname6 = __DIR__ . '/' . basename(__FILE__, '.php') . '.6.phar.zip'; 68 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); 69 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip'); 70 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.3.phar.zip'); [all …]
|
H A D | largezip.phpt | 2 Phar: large zip file (zip edge cases) 10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip.php'; 11 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip.php'; 24 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php'); ?> 25 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip.php'); ?>
|
H A D | create_new_phar_b.phpt | 2 Phar: create a completely new zip-based phar 11 file_put_contents('phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip/a.php', 13 include 'phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip/a.php'; 17 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 19 Warning: file_put_contents(phar://%screate_new_phar_b.phar.zip/a.php): Failed to open stream: phar … 21 Warning: include(phar://%screate_new_phar_b.phar.zip/a.php): Failed to open stream: %s in %screate_… 23 Warning: include(): Failed opening 'phar://%screate_new_phar_b.phar.zip/a.php' for inclusion (inclu…
|
H A D | corrupt_003.phpt | 2 Phar: corrupted zip (truncated file comment) 8 new PharData(__DIR__ . '/files/filecomment.zip'); 14 phar error: end of central directory not found in zip-based phar "%sfilecomment.zip"
|
H A D | corrupt_004.phpt | 2 Phar: corrupted zip (central directory offset incorrect) 8 new PharData(__DIR__ . '/files/cdir_offset.zip'); 14 … error: corrupted central directory entry, no magic signature in zip-based phar "%scdir_offset.zip"
|
H A D | corrupt_007.phpt | 2 Phar: corrupted zip (truncated filename record) 8 new PharData(__DIR__ . '/files/truncfilename.zip'); 14 …rror: corrupted central directory entry, no magic signature in zip-based phar "%struncfilename.zip"
|
H A D | corrupt_006.phpt | 2 Phar: zip with file created from stdin 8 new PharData(__DIR__ . '/files/stdin.zip'); 14 …rror: Cannot process zips created from stdin (zero-length filename) in zip-based phar "%sstdin.zip"
|
/PHP-8.0/ext/phar/tests/zip/files/ |
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-8.0/ext/phar/tests/ |
H A D | bug77322.phpt | 9 $zip = new PharData(__DIR__ . '/bug77322.zip'); 10 $zip->addEmptyDir('/'); 11 var_dump($zip->count()); 22 unlink(__DIR__ . '/bug77322.zip');
|
H A D | bug48377.2.phpt | 10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.zip'; 15 $phar->convertToData(Phar::ZIP, Phar::NONE, 'phar.zip'); 21 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.zip');?> 23 data phar "%sbug48377.2.phar.zip" has invalid extension phar.zip
|