xref: /PHP-7.1/ext/zip/tests/bug53854.phpt (revision c5f06eff)
1--TEST--
2Bug #53854 (Missing constants for compression type)
3--SKIPIF--
4<?php
5if(!extension_loaded('zip')) die('skip');
6?>
7--FILE--
8<?php
9
10var_dump(ZipArchive::CM_DEFAULT);
11var_dump(ZipArchive::CM_STORE);
12var_dump(ZipArchive::CM_SHRINK);
13var_dump(ZipArchive::CM_REDUCE_1);
14var_dump(ZipArchive::CM_REDUCE_2);
15var_dump(ZipArchive::CM_REDUCE_3);
16var_dump(ZipArchive::CM_REDUCE_4);
17var_dump(ZipArchive::CM_IMPLODE);
18var_dump(ZipArchive::CM_DEFLATE);
19var_dump(ZipArchive::CM_DEFLATE64);
20var_dump(ZipArchive::CM_PKWARE_IMPLODE);
21var_dump(ZipArchive::CM_BZIP2);
22var_dump(ZipArchive::CM_LZMA);
23var_dump(ZipArchive::CM_TERSE);
24var_dump(ZipArchive::CM_LZ77);
25var_dump(ZipArchive::CM_WAVPACK);
26var_dump(ZipArchive::CM_PPMD);
27--EXPECT--
28int(-1)
29int(0)
30int(1)
31int(2)
32int(3)
33int(4)
34int(5)
35int(6)
36int(8)
37int(9)
38int(10)
39int(12)
40int(14)
41int(18)
42int(19)
43int(97)
44int(98)
45