/php-src/ext/zip/tests/ |
H A D | bug14962.phpt | 4 zip 12 $za->open($dir . '/__14962.zip', ZIPARCHIVE::CREATE); 16 if (!is_file($dir . "/__14962.zip")) { 20 $za->open($dir . '/__14962.zip'); 28 unlink($dir . '/' . '__14962.zip');
|
H A D | bug53603.phpt | 4 zip 20 $file = $dirname . 'test_with_comment.zip'; 21 $zip = new ZipArchive; 22 if ($zip->open($file) !== TRUE) { 27 $a = $zip->extractTo('teststream://test');
|
H A D | zip_entry_read.phpt | 4 zip 7 $zip = zip_open(__DIR__."/test_procedural.zip"); 8 $entry = zip_read($zip); 9 if (!zip_entry_open($zip, $entry, "r")) die("Failure"); 12 zip_close($zip);
|
H A D | zip_open_error.phpt | 7 zip 12 $zip = zip_open(""); 18 $zip = zip_open("/non_exisitng_directory/test_procedural.zip"); 19 echo is_resource($zip) ? "OK" : "Failure";
|
H A D | zip_read.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_close.phpt | 4 zip 7 $zip = zip_open(__DIR__."/test_procedural.zip"); 8 $entry = zip_read($zip); 9 echo "entry_open: "; var_dump(zip_entry_open($zip, $entry, "r")); 16 zip_close($zip);
|
H A D | oo_extract.phpt | 4 zip 8 $file = $dirname . 'test_with_comment.zip'; 10 $zip = new ZipArchive; 11 if ($zip->open($file) !== TRUE) { 16 $zip->extractTo($dirname . '__oo_extract_tmp'); 45 $zip->extractTo($dirname . '__oo_extract_tmp', 'bar'); 53 $zip->extractTo($dirname . '__oo_extract_tmp', array('bar','foo'));
|
/php-src/ext/phar/tests/ |
H A D | bug48377.2.phpt | 10 $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
|
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 | 7 $phar = new PharData(__DIR__ . '/bug77565.zip'); 8 var_dump($phar['1.zip']->getFilename()); 11 string(5) "1.zip"
|
/php-src/ext/phar/tests/zip/ |
H A D | corrupt_003.phpt | 2 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 D | corrupt_007.phpt | 2 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 D | corrupt_004.phpt | 2 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 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_006.phpt | 2 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"
|
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 | 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 | 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_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.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 | 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…
|
/php-src/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();
|