/php-src/ext/zip/tests/ |
H A D | bug76524.phpt | 4 zip 10 $filename = __DIR__ . "/nonexistent" . ($i++) . ".zip"; 13 $zip = new ZipArchive(); 14 $zip->open($filename, ZipArchive::CREATE | ZipArchive::OVERWRITE);
|
H A D | bug7214.phpt | 4 zip 7 $zip = zip_open(__DIR__."/binarynull.zip"); 8 if (!is_resource($zip)) die("Failure"); 10 $entry = zip_read($zip);
|
H A D | bug70350.phpt | 4 zip 11 $archive->open("$dir/a.zip",ZipArchive::CREATE); 16 $archive2->open("$dir/a.zip"); 26 unlink("$dir/a.zip");
|
H A D | zip_entry_compressedsize.phpt | 4 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 D | zip_entry_compressionmethod.phpt | 4 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 D | zip_entry_filesize.phpt | 4 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 D | zip_entry_name.phpt | 4 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 D | bug11216.phpt | 4 zip 8 $archive->open('__test.zip', ZIPARCHIVE::CREATE); 13 unlink('__test.zip');
|
H A D | bug53885.phpt | 4 zip 7 $fname = __DIR__."/test53885.zip"; 18 $fname = __DIR__."/test53885.zip";
|
H A D | oo_getstatusstring.phpt | 7 zip 13 $arch->open($dirname.'foo.zip',ZIPARCHIVE::CREATE); 23 @unlink(__DIR__.'/foo.zip');
|
/php-src/ext/phar/tests/ |
H A D | phar_convert_zip.phpt | 13 $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 D | phar_convert_again.phpt | 27 $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 D | bug48377.phpt | 11 $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 D | bug71498.phpt | 8 $p = new PharData(__DIR__."/bug71498.zip"); 16 phar error: end of central directory not found in zip-based phar "%s%ebug71498.zip"
|
H A D | phar_isvalidpharfilename.phpt | 56 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 D | open_for_write_newfile_c.phpt | 2 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 D | open_for_write_newfile_b.phpt | 2 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 D | phar_magic.phpt | 2 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 D | phar_stub_error.phpt | 2 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 D | delete_in_phar.phpt | 2 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 D | all.phpt | 2 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 D | 033.phpt | 2 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 D | phar_commitwrite.phpt | 2 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 D | phar_setalias2.phpt | 2 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 D | refcount1.phpt | 2 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"
|