xref: /PHP-7.2/ext/phar/tests/bug73764.phpt (revision f1d7e3ca)
1--TEST--
2Phar: PHP bug #73764: Crash while loading hostile phar archive
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7chdir(__DIR__);
8try {
9$p = Phar::LoadPhar('bug73764.phar', 'alias.phar');
10echo "OK\n";
11} catch(PharException $e) {
12	echo $e->getMessage();
13}
14?>
15--EXPECTF--
16internal corruption of phar "%sbug73764.phar" (truncated manifest entry)
17