/PHP-8.0/ext/phar/tests/zip/ |
H A D | delete_in_phar_confirm.phpt | 2 Phar: delete a file within a zip-based .phar (confirm disk file is changed) 12 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 34 include 'phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip/a.php'; 35 include 'phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip/b.php'; 36 include 'phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip/b/c.php'; 40 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 49 …_phar_confirm.phar.zip/b/c.php): Failed to open stream: phar error: "b/c.php" is not a file in pha… 51 Warning: include(): Failed opening 'phar://%sdelete_in_phar_confirm.phar.zip/b/c.php' for inclusion…
|
H A D | corrupt_009.phpt | 2 Phar: corrupted zip (extra field way too long) 8 new PharData(__DIR__ . '/files/extralen_toolong.zip'); 14 …process extra field header for file in central directory in zip-based phar "%sextralen_toolong.zip"
|
H A D | exists_as_phar.phpt | 2 Phar: phar-based phar named with ".zip" fails 12 $tname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 32 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); 36 phar zip error: phar "%sexists_as_phar.phar.zip" already exists as a regular phar and must be delet…
|
H A D | delete.phpt | 2 Phar: delete test, zip-based phar 11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 27 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 31 …et_contents(phar://%sdelete.phar.zip/a): Failed to open stream: phar error: "a" is not a file in p…
|
H A D | phar_setalias.phpt | 2 Phar::setAlias() 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'; 51 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); 52 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '2.phar.zip'); 53 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '3.phar.zip');
|
H A D | rename.phpt | 2 Phar: rename test zip-based 11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 29 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 34 …et_contents(phar://%srename.phar.zip/a): Failed to open stream: phar error: "a" is not a file in p…
|
H A D | phar_setdefaultstub.phpt | 2 Phar: Phar::setDefaultStub() with and without arg, zip-based phar 10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 68 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); 75 string(60) "<?php // zip-based phar archive stub file 79 Phar::setDefaultStub(): Argument #1 ($index) must be null for a tar- or zip-based phar stub, string… 80 string(60) "<?php // zip-based phar archive stub file 84 Phar::setDefaultStub(): Argument #1 ($index) must be null for a tar- or zip-based phar stub, string… 85 string(60) "<?php // zip-based phar archive stub file
|
H A D | rename_dir.phpt | 2 Phar: rename_dir test zip-based 11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 29 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 34 …nts(phar://%srename_dir.phar.zip/a/x): Failed to open stream: phar error: "a/x" is not a file in p…
|
H A D | open_for_write_newfile_b.phpt | 2 Phar: fopen a .phar for writing (new file) zip-based 13 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 39 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 41 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): Failed to open stream: phar e… 45 …_newfile_b.phar.zip/b/new.php): Failed to open stream: phar error: "b/new.php" is not a file in ph… 47 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.zip/b/new.php' for inclu…
|
H A D | open_for_write_newfile_c.phpt | 2 Phar: fopen a .phar for writing (new file) zip-based 13 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; 39 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 41 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): Failed to open stream: phar e… 45 …_newfile_c.phar.zip/b/new.php): Failed to open stream: phar error: "b/new.php" is not a file in ph… 47 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c.phar.zip/b/new.php' for inclu…
|
/PHP-8.0/ext/phar/tests/zip/files/ |
H A D | zipmaker.php.inc | 14 protected $zip; 33 $this->zip->addFromString($path, stream_get_contents($fileOrStream)); 35 $this->zip->addFromString($path, $fileOrStream); 44 $this->zip = new ZipArchive; 45 if (true !== $this->zip->open($this->path, ZIPARCHIVE::CREATE)) { 60 $this->zip->addEmptyDir($dir); 68 $this->zip->close();
|
/PHP-8.0/ext/phar/tests/ |
H A D | bug72928.phpt | 2 Phar: #72928 (Out of bound when verify signature of zip phar in phar_parse_zipfile) 9 $phar = new PharData('bug72928.zip'); 17 phar error: signature cannot be read in zip-based phar "%sbug72928.zip"
|
H A D | phar_buildfromiterator10.phpt | 80 ["zip/corrupt_001.phpt"]=> 82 ["zip/corrupt_002.phpt"]=> 84 ["zip/corrupt_003.phpt"]=> 86 ["zip/corrupt_004.phpt"]=> 88 ["zip/corrupt_005.phpt"]=> 90 ["zip/corrupt_006.phpt"]=> 92 ["zip/corrupt_007.phpt"]=> 94 ["zip/corrupt_008.phpt"]=> 96 ["zip/corrupt_009.phpt"]=> 98 ["zip/corrupt_010.phpt"]=>
|
H A D | phar_extract3.phpt | 10 $fname = __DIR__ . '/files/bogus.zip'; 11 $fname2 = __DIR__ . '/files/notbogus.zip'; 42 Invalid argument, %sfiles/bogus.zip cannot be found 43 phar://%sfiles/notbogus.zip%cnonsense.txt 44 phar://%sfiles/notbogus.zip%cstuff.txt
|
H A D | bug77565.phpt | 9 $phar = new PharData(__DIR__ . '/bug77565.zip'); 10 var_dump($phar['1.zip']->getFilename()); 13 string(5) "1.zip"
|
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
|
/PHP-8.0/ext/zip/tests/ |
H A D | bug7214.phpt | 5 if(!extension_loaded('zip')) die('skip'); 9 $zip = zip_open(__DIR__."/binarynull.zip"); 10 if (!is_resource($zip)) die("Failure"); 12 $entry = zip_read($zip);
|
H A D | zip_entry_close.phpt | 5 if(!extension_loaded('zip')) die('skip'); 9 $zip = zip_open(__DIR__."/test_procedural.zip"); 10 $entry = zip_read($zip); 11 echo "entry_open: "; var_dump(zip_entry_open($zip, $entry, "r")); 18 zip_close($zip);
|
H A D | zip_entry_compressedsize.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 | zip_entry_compressionmethod.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 | zip_entry_filesize.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 | zip_entry_name.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 | oo_extract.phpt | 5 if(!extension_loaded('zip')) die('skip'); 10 $file = $dirname . 'test_with_comment.zip'; 12 $zip = new ZipArchive; 13 if ($zip->open($file) !== TRUE) { 18 $zip->extractTo($dirname . '__oo_extract_tmp'); 47 $zip->extractTo($dirname . '__oo_extract_tmp', 'bar'); 55 $zip->extractTo($dirname . '__oo_extract_tmp', array('bar','foo'));
|
H A D | bug76524.phpt | 5 if(!extension_loaded('zip')) die('skip'); 12 $filename = __DIR__ . "/nonexistent" . ($i++) . ".zip"; 15 $zip = new ZipArchive(); 16 $zip->open($filename, ZipArchive::CREATE | ZipArchive::OVERWRITE);
|
H A D | bug70350.phpt | 5 if(!extension_loaded('zip')) die('skip'); 13 $archive->open("$dir/a.zip",ZipArchive::CREATE); 18 $archive2->open("$dir/a.zip"); 28 unlink("$dir/a.zip");
|