summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/corrupt_009.phpt
blob: 0ca80c00c1e9a2c64c21a2a605ee0a9f554a8526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Phar: corrupted zip (extra field way too long)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
try {
	new PharData(dirname(__FILE__) . '/files/extralen_toolong.zip');
} catch (Exception $e) {
	echo $e->getMessage() . "\n";
}
?>
===DONE===
--EXPECTF--
phar error: Unable to process extra field header for file in central directory in zip-based phar "%sextralen_toolong.zip"
===DONE===