Home
last modified time | relevance | path

Searched refs:zip (Results 126 – 150 of 269) sorted by relevance

1234567891011

/php-src/ext/zip/tests/
H A Dbug76524.phpt4 zip
10 $filename = __DIR__ . "/nonexistent" . ($i++) . ".zip";
13 $zip = new ZipArchive();
14 $zip->open($filename, ZipArchive::CREATE | ZipArchive::OVERWRITE);
H A Dbug7214.phpt4 zip
7 $zip = zip_open(__DIR__."/binarynull.zip");
8 if (!is_resource($zip)) die("Failure");
10 $entry = zip_read($zip);
H A Dbug70350.phpt4 zip
11 $archive->open("$dir/a.zip",ZipArchive::CREATE);
16 $archive2->open("$dir/a.zip");
26 unlink("$dir/a.zip");
H A Dzip_entry_compressedsize.phpt4 zip
7 $zip = zip_open(__DIR__."/test_procedural.zip");
8 if (!is_resource($zip)) die("Failure");
10 while ($entry = zip_read($zip)) {
13 zip_close($zip);
H A Dzip_entry_compressionmethod.phpt4 zip
7 $zip = zip_open(__DIR__."/test_procedural.zip");
8 if (!is_resource($zip)) die("Failure");
10 while ($entry = zip_read($zip)) {
13 zip_close($zip);
H A Dzip_entry_filesize.phpt4 zip
7 $zip = zip_open(__DIR__."/test_procedural.zip");
8 if (!is_resource($zip)) die("Failure");
10 while ($entry = zip_read($zip)) {
13 zip_close($zip);
H A Dzip_entry_name.phpt4 zip
7 $zip = zip_open(__DIR__."/test_procedural.zip");
8 if (!is_resource($zip)) die("Failure");
10 while ($entry = zip_read($zip)) {
13 zip_close($zip);
H A Dbug11216.phpt4 zip
8 $archive->open('__test.zip', ZIPARCHIVE::CREATE);
13 unlink('__test.zip');
H A Dbug53885.phpt4 zip
7 $fname = __DIR__."/test53885.zip";
18 $fname = __DIR__."/test53885.zip";
H A Doo_getstatusstring.phpt7 zip
13 $arch->open($dirname.'foo.zip',ZIPARCHIVE::CREATE);
23 @unlink(__DIR__.'/foo.zip');
/php-src/ext/phar/tests/
H A Dphar_convert_zip.phpt13 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
14 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip';
41 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
43 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip');
50 string(60) "<?php // zip-based phar archive stub file
53 string(60) "<?php // zip-based phar archive stub file
H A Dphar_convert_again.phpt27 $zip = $phar->convertToData(Phar::ZIP);
28 echo $zip->getPath() . "\n";
44 $zip = $phar->convertToExecutable(Phar::ZIP);
45 echo $zip->getPath() . "\n";
46 echo $zip['a']->getMetadata() . "\n";
47 $data = $zip->convertToData();
171 %sphar_convert_again.zip
176 %sphar_convert_again2.phar.zip
178 %sphar_convert_again2.zip
179 A Phar stub cannot be set in a plain zip archive
[all …]
H A Dbug48377.phpt11 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.zip';
18 $phar->convertToData(Phar::ZIP, Phar::NONE, 'zip');
25 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.zip');?>
27 phar "%sbug48377.zip" exists and must be unlinked prior to conversion
H A Dbug71498.phpt8 $p = new PharData(__DIR__."/bug71498.zip");
16 phar error: end of central directory not found in zip-based phar "%s%ebug71498.zip"
H A Dphar_isvalidpharfilename.phpt56 echo "\nphar.zip\n";
57 var_dump(Phar::isValidPharFilename('phar.zip'));
58 var_dump(Phar::isValidPharFilename('phar.zip', true));
59 var_dump(Phar::isValidPharFilename('phar.zip', false));
61 echo "\nphar.zip.phar\n";
62 var_dump(Phar::isValidPharFilename('phar.zip.phar'));
63 var_dump(Phar::isValidPharFilename('phar.zip.phar', true));
64 var_dump(Phar::isValidPharFilename('phar.zip.phar', false));
121 phar.zip
126 phar.zip.phar
/php-src/ext/phar/tests/zip/
H A Dopen_for_write_newfile_c.phpt2 Phar: fopen a .phar for writing (new file) zip-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
37 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?>
39 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): Failed to open stream: phar e…
43 …_newfile_c.phar.zip/b/new.php): Failed to open stream: phar error: "b/new.php" is not a file in ph…
45 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c.phar.zip/b/new.php' for inclu…
H A Dopen_for_write_newfile_b.phpt2 Phar: fopen a .phar for writing (new file) zip-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
37 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?>
39 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): Failed to open stream: phar e…
43 …_newfile_b.phar.zip/b/new.php): Failed to open stream: phar error: "b/new.php" is not a file in ph…
45 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.zip/b/new.php' for inclu…
H A Dphar_magic.phpt2 Phar: include/fopen magic zip-based
10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip.php';
11 $pname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip.php';
27 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php');
32 string(%d) "%sphar_magic.phar.zip.php"
H A Dphar_stub_error.phpt2 Phar::setStub()/getStub() zip-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
40 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
47 Exception: illegal stub for zip-based phar "%sphar_stub_error.phar.zip"
H A Ddelete_in_phar.phpt2 Phar: delete a file within a zip-based .phar
12 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
35 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?>
44 …(%sdelete_in_phar.phar.zip/b/c.php): Failed to open stream: phar error: "b/c.php" is not a file in…
46 Warning: include(): Failed opening 'phar://%sdelete_in_phar.phar.zip/b/c.php' for inclusion (includ…
H A Dall.phpt2 Phar: test that creation of zip-based phar generates valid zip with all bells/whistles
12 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip.php';
14 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip.php';
45 @unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php');
46 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip.php');
H A D033.phpt2 Phar::chmod zip-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
12 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip';
43 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
44 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip');
H A Dphar_commitwrite.phpt2 Phar::setStub()/stopBuffering() zip-based
10 $p = new Phar(__DIR__ . '/phar_commitwrite.phar.zip', 0, 'phar_commitwrite.phar');
27 unlink(__DIR__ . '/phar_commitwrite.phar.zip');
30 string(60) "<?php // zip-based phar archive stub file
H A Dphar_setalias2.phpt2 Phar::setAlias() error zip-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
41 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
47 alias "test" is already used for archive "%sphar_setalias2.phar.zip" and cannot be used for other a…
H A Drefcount1.phpt2 Phar: test that refcounting avoids problems with deleting a file zip-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
46 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?>
51 string(%d) "phar://%srefcount1.phar.zip/b/c.php"
58 Warning: unlink(): phar error: "b/c.php" in phar "%srefcount1.phar.zip", has open file pointers, ca…
61 string(%d) "phar://%srefcount1.phar.zip/b/c.php"

Completed in 44 milliseconds

1234567891011