xref: /php-src/ext/phar/tests/bug73764.phpt (revision 74859783)
1--TEST--
2Phar: PHP bug #73764: Crash while loading hostile phar archive
3--EXTENSIONS--
4phar
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