xref: /PHP-8.0/ext/zip/tests/bug53854.phpt (revision 7aacc705)
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?>
28--EXPECT--
29int(-1)
30int(0)
31int(1)
32int(2)
33int(3)
34int(4)
35int(5)
36int(6)
37int(8)
38int(9)
39int(10)
40int(12)
41int(14)
42int(18)
43int(19)
44int(97)
45int(98)
46