xref: /PHP-8.4/ext/phar/tests/bug72928.phpt (revision 74859783)
1--TEST--
2Phar: #72928 (Out of bound when verify signature of zip phar in phar_parse_zipfile)
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7chdir(__DIR__);
8try {
9$phar = new PharData('bug72928.zip');
10var_dump($phar);
11} catch(UnexpectedValueException $e) {
12    print $e->getMessage()."\n";
13}
14?>
15DONE
16--EXPECTF--
17phar error: signature cannot be read in zip-based phar "%sbug72928.zip"
18DONE
19