summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/corrupt_006.phpt
blob: 8c36cd98b838abf0b2bcf7da87a1e4ad5fd0dd7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Phar: zip with file created from stdin
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
try {
	new PharData(__DIR__ . '/files/stdin.zip');
} catch (Exception $e) {
	echo $e->getMessage() . "\n";
}
?>
--EXPECTF--
phar error: Cannot process zips created from stdin (zero-length filename) in zip-based phar "%sstdin.zip"