xref: /PHP-7.0/ext/phar/tests/bug72928.phpt (revision 223266e4)
1--TEST--
2Phar: #72928 (Out of bound when verify signature of zip phar in phar_parse_zipfile)
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
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