xref: /PHP-5.5/ext/phar/tests/zip/corrupt_006.phpt (revision 16b4d8e0)
1--TEST--
2Phar: zip with file created from stdin
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6--FILE--
7<?php
8try {
9	new PharData(dirname(__FILE__) . '/files/stdin.zip');
10} catch (Exception $e) {
11	echo $e->getMessage() . "\n";
12}
13?>
14===DONE===
15--EXPECTF--
16phar error: Cannot process zips created from stdin (zero-length filename) in zip-based phar "%sstdin.zip"
17===DONE===
18