Home
last modified time | relevance | path

Searched refs:zip (Results 76 – 100 of 257) sorted by relevance

1234567891011

/PHP-8.0/ext/zip/tests/
H A Dzip_close.phpt5 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 D001.phpt2 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 Dbug64342_0.phpt5 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 Dzip_entry_open.phpt5 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 Dbug40228.phpt4 <?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 Dzip_open.phpt5 if(!extension_loaded('zip')) die('skip');
9 $zip = zip_open(__DIR__."/test_procedural.zip");
11 echo is_resource($zip) ? "OK" : "Failure";
H A Dbug40228-mb.phpt4 <?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 Dbug80833.phpt5 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 Dzip_entry_read.phpt5 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 Dzip_read.phpt5 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 Dbug14962.phpt5 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 Dbug53603.phpt5 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 Dzip_open_error.phpt8 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 Doldapi.php3 $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 Dcorrupt_010.phpt2 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 Dphar_setsignaturealgo2.phpt2 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 Dlargezip.phpt2 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 Dcreate_new_phar_b.phpt2 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 Dcorrupt_003.phpt2 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 Dcorrupt_004.phpt2 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 Dcorrupt_007.phpt2 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 Dcorrupt_006.phpt2 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 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-8.0/ext/phar/tests/
H A Dbug77322.phpt9 $zip = new PharData(__DIR__ . '/bug77322.zip');
10 $zip->addEmptyDir('/');
11 var_dump($zip->count());
22 unlink(__DIR__ . '/bug77322.zip');
H A Dbug48377.2.phpt10 $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

Completed in 38 milliseconds

1234567891011