xref: /PHP-8.0/ext/phar/tests/zip/corrupt_003.phpt (revision d1b1c043)
1--TEST--
2Phar: corrupted zip (truncated file comment)
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7try {
8    new PharData(__DIR__ . '/files/filecomment.zip');
9} catch (Exception $e) {
10    echo $e->getMessage() . "\n";
11}
12?>
13--EXPECTF--
14phar error: end of central directory not found in zip-based phar "%sfilecomment.zip"
15