Annotation of embedaddon/php/ext/phar/tests/011.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Phar::mapPhar filesize too small in manifest
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("phar")) die("skip");?>
                      5: --INI--
                      6: phar.require_hash=0
                      7: --FILE--
                      8: <?php
                      9: $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
                     10: $pname = 'phar://' . $fname;
                     11: $file = "<?php
                     12: Phar::mapPhar('hio');
                     13: __HALT_COMPILER(); ?>";
                     14: 
                     15: // compressed file length does not match incompressed lentgh for an uncompressed file
                     16: 
                     17: $files = array();
                     18: $files['a'] = array('cont'=>'a','ulen'=>1,'clen'=>2);;
                     19: include 'files/phar_test.inc';
                     20: try {
                     21: include $fname;
                     22: echo file_get_contents('phar://hio/a');
                     23: } catch (Exception $e) {
                     24: echo $e->getMessage();
                     25: }
                     26: ?>
                     27: --CLEAN--
                     28: <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
                     29: --EXPECTF--
                     30: internal corruption of phar "%s" (compressed and uncompressed size does not match for uncompressed entry)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>