xref: /PHP-8.2/ext/phar/tests/bug71498.phpt (revision 74859783)
1--TEST--
2Phar: bug #71498: Out-of-Bound Read in phar_parse_zipfile()
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7try {
8$p = new PharData(__DIR__."/bug71498.zip");
9} catch(UnexpectedValueException $e) {
10    echo $e->getMessage();
11}
12?>
13
14DONE
15--EXPECTF--
16phar error: end of central directory not found in zip-based phar "%s%ebug71498.zip"
17DONE
18