Annotation of embedaddon/php/ext/zip/tests/bug53854.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>