xref: /PHP-7.2/ext/phar/tests/bug73035.phpt (revision f1d7e3ca)
1--TEST--
2Phar: #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7chdir(__DIR__);
8try {
9$phar = new PharData('bug73035.tar');
10var_dump($phar);
11} catch(UnexpectedValueException $e) {
12	print $e->getMessage()."\n";
13}
14?>
15DONE
16--EXPECTF--
17phar error: tar-based phar "%sbug73035.tar" signature cannot be read
18DONE
19