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

1.1       misho       1: --TEST--
                      2: Phar::mapPhar truncated manifest/improper params
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("phar")) die("skip"); ?>
                      5: --FILE--
                      6: <?php
                      7: try {
                      8: Phar::mapPhar(5, 'hio', 'hi');
                      9: 
                     10: Phar::mapPhar();
                     11: } catch (Exception $e) {
                     12:        echo $e->getMessage();
                     13: }
                     14: __HALT_COMPILER(); ?>
                     15: --EXPECTF--
                     16: Warning: Phar::mapPhar() expects at most 2 parameters, 3 given in %s002.php on line %d
                     17: internal corruption of phar "%s002.php" (truncated manifest at manifest length)

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