Annotation of embedaddon/php/ext/phar/tests/zip/corrupt_009.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Phar: corrupted zip (extra field way too long)
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded("phar")) die("skip"); ?>
        !             5: <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
        !             6: --FILE--
        !             7: <?php
        !             8: try {
        !             9:        new PharData(dirname(__FILE__) . '/files/extralen_toolong.zip');
        !            10: } catch (Exception $e) {
        !            11:        echo $e->getMessage() . "\n";
        !            12: }
        !            13: ?>
        !            14: ===DONE===
        !            15: --EXPECTF--
        !            16: phar error: Unable to process extra field header for file in central directory in zip-based phar "%sextralen_toolong.zip"
        !            17: ===DONE===

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