1--TEST-- 2Phar: truncated tar 3--SKIPIF-- 4<?php if (!extension_loaded("phar")) die("skip"); ?> 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--CLEAN-- 15<?php 16unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); 17unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar'); 18?> 19--EXPECTF-- 20phar error: "%strunc.tar" is a corrupted tar file (truncated) 21