summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/corrupt_006.phpt
blob: 91642cf6bc128b4a09dcdcb73a4a11ef1221e96e (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"