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

1.1       misho       1: --TEST--
                      2: Phar::mapPhar too many manifest entries
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("phar")) die("skip");?>
                      5: --INI--
                      6: phar.require_hash=0
                      7: --FILE--
                      8: <?php
                      9: $file = b"<?php
                     10: Phar::mapPhar('hio');
                     11: __HALT_COMPILER(); ?>";
                     12: $file .= (binary) pack(b'VVnVVV', 500, 500, 0x1000, 0x00000000, 0, 0) . (binary) str_repeat((binary)'A', 500);
                     13: file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file);
                     14: try {
                     15: include dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
                     16: } catch (Exception $e) {
                     17: echo $e->getMessage();
                     18: }
                     19: ?>
                     20: --CLEAN--
                     21: <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
                     22: --EXPECTF--
                     23: internal corruption of phar "%s009.phar.php" (too many manifest entries for size of manifest)

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