summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/corrupt_003.phpt
blob: e076a4eb8ffd491287a3e61c9eadccacbb8472fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Phar: corrupted zip (truncated file comment)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
try {
	new PharData(__DIR__ . '/files/filecomment.zip');
} catch (Exception $e) {
	echo $e->getMessage() . "\n";
}
?>
===DONE===
--EXPECTF--
phar error: corrupt zip archive, zip file comment truncated in zip-based phar "%sfilecomment.zip"
===DONE===