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