xref: /PHP-8.4/ext/phar/tests/tar/truncated.phpt (revision 98d004c9)
1--TEST--
2Phar: truncated tar
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7try {
8    $p = new PharData(__DIR__ . '/files/trunc.tar');
9} catch (Exception $e) {
10    echo $e->getMessage() . "\n";
11}
12
13?>
14--EXPECTF--
15phar error: "%strunc.tar" is a corrupted tar file (truncated)
16