Annotation of embedaddon/php/ext/phar/tests/zip/corrupt_008.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: unsupported compression methods
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
8: try {
9: new PharData(dirname(__FILE__) . '/files/compress_unsup1.zip');
10: } catch (Exception $e) {
11: echo $e->getMessage() . "\n";
12: }
13: try {
14: new PharData(dirname(__FILE__) . '/files/compress_unsup2.zip');
15: } catch (Exception $e) {
16: echo $e->getMessage() . "\n";
17: }
18: try {
19: new PharData(dirname(__FILE__) . '/files/compress_unsup3.zip');
20: } catch (Exception $e) {
21: echo $e->getMessage() . "\n";
22: }
23: try {
24: new PharData(dirname(__FILE__) . '/files/compress_unsup4.zip');
25: } catch (Exception $e) {
26: echo $e->getMessage() . "\n";
27: }
28: try {
29: new PharData(dirname(__FILE__) . '/files/compress_unsup5.zip');
30: } catch (Exception $e) {
31: echo $e->getMessage() . "\n";
32: }
33: try {
34: new PharData(dirname(__FILE__) . '/files/compress_unsup6.zip');
35: } catch (Exception $e) {
36: echo $e->getMessage() . "\n";
37: }
38: try {
39: new PharData(dirname(__FILE__) . '/files/compress_unsup7.zip');
40: } catch (Exception $e) {
41: echo $e->getMessage() . "\n";
42: }
43: try {
44: new PharData(dirname(__FILE__) . '/files/compress_unsup9.zip');
45: } catch (Exception $e) {
46: echo $e->getMessage() . "\n";
47: }
48: try {
49: new PharData(dirname(__FILE__) . '/files/compress_unsup10.zip');
50: } catch (Exception $e) {
51: echo $e->getMessage() . "\n";
52: }
53: try {
54: new PharData(dirname(__FILE__) . '/files/compress_unsup14.zip');
55: } catch (Exception $e) {
56: echo $e->getMessage() . "\n";
57: }
58: try {
59: new PharData(dirname(__FILE__) . '/files/compress_unsup18.zip');
60: } catch (Exception $e) {
61: echo $e->getMessage() . "\n";
62: }
63: try {
64: new PharData(dirname(__FILE__) . '/files/compress_unsup19.zip');
65: } catch (Exception $e) {
66: echo $e->getMessage() . "\n";
67: }
68: try {
69: new PharData(dirname(__FILE__) . '/files/compress_unsup97.zip');
70: } catch (Exception $e) {
71: echo $e->getMessage() . "\n";
72: }
73: try {
74: new PharData(dirname(__FILE__) . '/files/compress_unsup98.zip');
75: } catch (Exception $e) {
76: echo $e->getMessage() . "\n";
77: }
78: try {
79: new PharData(dirname(__FILE__) . '/files/compress_unsupunknown.zip');
80: } catch (Exception $e) {
81: echo $e->getMessage() . "\n";
82: }
83: ?>
84: ===DONE===
85: --EXPECTF--
86: phar error: unsupported compression method (Shrunk) used in this zip in zip-based phar "%scompress_unsup1.zip"
87: phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup2.zip"
88: phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup3.zip"
89: phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup4.zip"
90: phar error: unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup5.zip"
91: phar error: unsupported compression method (Implode) used in this zip in zip-based phar "%scompress_unsup6.zip"
92: phar error: unsupported compression method (Tokenize) used in this zip in zip-based phar "%scompress_unsup7.zip"
93: phar error: unsupported compression method (Deflate64) used in this zip in zip-based phar "%scompress_unsup9.zip"
94: phar error: unsupported compression method (PKWare Implode/old IBM TERSE) used in this zip in zip-based phar "%scompress_unsup10.zip"
95: phar error: unsupported compression method (LZMA) used in this zip in zip-based phar "%scompress_unsup14.zip"
96: phar error: unsupported compression method (IBM TERSE) used in this zip in zip-based phar "%scompress_unsup18.zip"
97: phar error: unsupported compression method (IBM LZ77) used in this zip in zip-based phar "%scompress_unsup19.zip"
98: phar error: unsupported compression method (WavPack) used in this zip in zip-based phar "%scompress_unsup97.zip"
99: phar error: unsupported compression method (PPMd) used in this zip in zip-based phar "%scompress_unsup98.zip"
100: phar error: unsupported compression method (unknown) used in this zip in zip-based phar "%scompress_unsupunknown.zip"
101: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>