Home
last modified time | relevance | path

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

1234567891011

/php-src/ext/zip/tests/
H A Doo_progress.phpt4 zip
15 $file = $dirname . '__tmp_oo_progress.zip';
19 $zip = new ZipArchive;
20 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
24 var_dump($zip->registerProgressCallback(0.5, function ($r) {
29 var_dump($zip->addFromString('foo', 'entry #1'));
31 var_dump($zip->close());
H A Dbug50678.phpt4 zip
9 $filename = __DIR__ . '/test.zip';
14 $zip = new ZipArchive();
15 $zip->open($filename);
16 $zip->extractTo($dirname);
17 $zip->close();
H A Dbug64342_0.phpt4 zip
8 $zip = new ZipArchive;
9 $res = $zip->open(__DIR__ . '/bug64342.zip', ZipArchive::CREATE);
13 $res = $zip->addFile($f);
19 $res = $zip->close();
35 @unlink(__DIR__ . '/bug64342.zip');
H A Doo_setcompression.phpt4 zip
14 $zip = new ZipArchive;
19 $zip->addFromString('entry1.txt', $txt);
20 $zip->addFromString('entry2.txt', $txt);
22 $zip->addFromString('entry4.txt', $txt);
23 $zip->addFromString('entry5.txt', $txt);
35 if (!$zip->close()) {
41 $zip = zip_open($tmpfile);
42 if (!is_resource($zip)) {
46 while ($e = zip_read($zip)) {
[all …]
H A Dbug70322.phpt8 zip
11 $zipfile = __DIR__ . '/bug70322.zip';
14 $zip = new ZipArchive();
15 $zip->open($zipfile, ZipArchive::CREATE);
16 $zip->addFile($textfile);
18 var_dump($zip->close());
23 @unlink(__DIR__ . '/bug70322.zip');
H A D001.phpt2 Check for zip presence
4 zip
7 echo "zip extension is available";
10 zip extension is available
H A Dbug81420.phpt4 zip
7 $zip = new ZipArchive();
8 $zip->open(__DIR__ . "/bug81420.zip");
11 $zip->extractTo($destination);
H A Dzip_close.phpt4 zip
7 $zip = zip_open(__DIR__."/test_procedural.zip");
8 if (!is_resource($zip)) die("Failure");
9 zip_close($zip);
H A Doo_getexternalattributesname_error.phpt4 zip
8 $zip = new ZipArchive();
11 $zip->open($dirname . "test.zip", ZIPARCHIVE::CREATE);
17 $zip->getExternalAttributesName("", $a, $b);
H A Dbug40228.phpt4 zip
8 $arc_name = __DIR__ . "/bug40228.zip";
9 $zip = new ZipArchive;
10 $zip->open($arc_name, ZIPARCHIVE::CREATE);
11 $zip->extractTo($dest);
H A Dbug40228-mb.phpt4 zip
8 $arc_name = __DIR__ . "/bug40228私はガラスを食べられます.zip";
9 $zip = new ZipArchive;
10 $zip->open($arc_name, ZIPARCHIVE::CREATE);
11 $zip->extractTo($dest);
H A Dzip_entry_open.phpt4 zip
7 $zip = zip_open(__DIR__."/test_procedural.zip");
8 $entry = zip_read($zip);
9 echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure";
11 zip_close($zip);
H A Doo_stream_seek.phpt4 zip
12 $file = __DIR__ . '/test.zip';
13 $zip = new ZipArchive;
14 if (!$zip->open($file)) {
18 $fp = $zip->getStream('bar');
32 $fp = $zip->getStream('entry1.txt');
40 $zip->close();
44 $fp = fopen('zip://' . __DIR__ . '/test.zip#bar', 'rb');
H A Dzip_open.phpt4 zip
7 $zip = zip_open(__DIR__."/test_procedural.zip");
9 echo is_resource($zip) ? "OK" : "Failure";
H A Dbug80833.phpt4 zip
12 $create_zip->open(__DIR__ . "/80833.zip", ZipArchive::CREATE);
22 'zip' => [
27 var_dump(file_get_contents("zip://" . __DIR__ . "/80833.zip#test.txt", false, $c));
31 $extract_zip->open(__DIR__ . "/80833.zip", ZipArchive::RDONLY);
50 @unlink(__DIR__ . "/80833.zip");
57 Warning: stream_get_contents(): Zip stream error: Containing zip archive was closed in %s
/php-src/ext/phar/tests/zip/
H A Dcorrupt_005.phpt2 Phar: encrypted zip
8 new PharData(__DIR__ . '/files/encrypted.zip');
14 phar error: Cannot process encrypted zip files in zip-based phar "%sencrypted.zip"
H A Dgetalias.phpt2 Phar: getAlias() with an existing phar.zip
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
13 // sanity check with a virgin phar.zip
18 copy(__DIR__ . '/files/metadata.phar.zip', $fname);
20 // existing phar.zip, no alias set
29 // existing phar.zip, alias set
48 unlink(__DIR__ . '/' . 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 Dphar_setsignaturealgo2.phpt2 Phar::setSupportedSignatures() with hash, zip-based
15 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
16 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip';
17 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.phar.zip';
18 $fname4 = __DIR__ . '/' . basename(__FILE__, '.php') . '.4.phar.zip';
19 $fname5 = __DIR__ . '/' . basename(__FILE__, '.php') . '.5.phar.zip';
20 $fname6 = __DIR__ . '/' . basename(__FILE__, '.php') . '.6.phar.zip';
70 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
71 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip');
72 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.3.phar.zip');
[all …]
H A Dcorrupt_002.phpt2 Phar: corrupted zip (no end of zip record)
8 new PharData(__DIR__ . '/files/nozipend.zip');
14 phar error: end of central directory not found in zip-based phar "%snozipend.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 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';
16 Warning: file_put_contents(phar://%screate_new_phar_b.phar.zip/a.php): Failed to open stream: phar …
18 Warning: include(phar://%screate_new_phar_b.phar.zip/a.php): Failed to open stream: %s in %screate_…
20 Warning: include(): Failed opening 'phar://%screate_new_phar_b.phar.zip/a.php' for inclusion (inclu…
/php-src/ext/phar/tests/
H A Dbug77322.phpt7 $zip = new PharData(__DIR__ . '/bug77322.zip');
8 $zip->addEmptyDir('/');
9 var_dump($zip->count());
20 unlink(__DIR__ . '/bug77322.zip');
/php-src/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-src/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');

Completed in 28 milliseconds

1234567891011