summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/corrupt_002.phpt
blob: 345d1d81db957e5355d1b018c8d78754f13341b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Phar: corrupted zip (no end of zip record)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
try {
	new PharData(dirname(__FILE__) . '/files/nozipend.zip');
} catch (Exception $e) {
	echo $e->getMessage() . "\n";
}
?>
===DONE===
--EXPECTF--
phar error: end of central directory not found in zip-based phar "%snozipend.zip"
===DONE===