xref: /php-src/ext/phar/tests/bug73035.phpt (revision 74859783)
1--TEST--
2Phar: #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
3--EXTENSIONS--
4phar
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