xref: /PHP-8.2/ext/phar/tests/zip/corrupt_002.phpt (revision 74859783)
1--TEST--
2Phar: corrupted zip (no end of zip record)
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7try {
8    new PharData(__DIR__ . '/files/nozipend.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 "%snozipend.zip"
15