Annotation of embedaddon/php/ext/phar/tests/tar/truncated.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: truncated tar
3: --SKIPIF--
4: <?php if (!extension_loaded("phar")) die("skip"); ?>
5: --FILE--
6: <?php
7: try {
8: $p = new PharData(dirname(__FILE__) . '/files/trunc.tar');
9: } catch (Exception $e) {
10: echo $e->getMessage() . "\n";
11: }
12:
13: ?>
14: ===DONE===
15: --CLEAN--
16: <?php
17: unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
18: unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
19: ?>
20: --EXPECTF--
21: phar error: "%strunc.tar" is a corrupted tar file (truncated)
22: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>