summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/corrupt_004.phpt
blob: bfef6cba5da8668016d5f133dff80a6485bac011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Phar: corrupted zip (central directory offset incorrect)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
try {
	new PharData(__DIR__ . '/files/cdir_offset.zip');
} catch (Exception $e) {
	echo $e->getMessage() . "\n";
}
?>
--EXPECTF--
phar error: corrupted central directory entry, no magic signature in zip-based phar "%scdir_offset.zip"