The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
ZipArchive uses class constants.
There are three types of constants :
Flags (prefixed with FL_
),
errors (prefixed with ER_
) and
mode (no prefix).
ZipArchive::CREATE
(integer)
ZipArchive::OVERWRITE
(integer)
ZipArchive::EXCL
(integer)
ZipArchive::RDONLY
(integer)
ZipArchive::CHECKCONS
(integer)
ZipArchive::FL_NOCASE
(integer)
ZipArchive::FL_NODIR
(integer)
ZipArchive::FL_COMPRESSED
(integer)
ZipArchive::FL_UNCHANGED
(integer)
ZipArchive::FL_RECOMPRESS
(integer)
ZipArchive::FL_ENCRYPTED
(integer)
ZipArchive::FL_OVERWRITE
(integer)
ZipArchive::FL_LOCAL
(integer)
ZipArchive::ZIP_FL_CENTRAL
(integer)
ZipArchive::FL_ENC_GUESS
(integer)
ZipArchive::FL_ENC_RAW
(integer)
ZipArchive::FL_ENC_STRICT
(integer)
ZipArchive::FL_ENC_UTF_8
(integer)
ZipArchive::FL_ENC_CP437
(integer)
ZipArchive::CM_DEFAULT
(integer)
ZipArchive::CM_STORE
(integer)
ZipArchive::CM_SHRINK
(integer)
ZipArchive::CM_REDUCE_1
(integer)
ZipArchive::CM_REDUCE_2
(integer)
ZipArchive::CM_REDUCE_3
(integer)
ZipArchive::CM_REDUCE_4
(integer)
ZipArchive::CM_IMPLODE
(integer)
ZipArchive::CM_DEFLATE
(integer)
ZipArchive::CM_DEFLATE64
(integer)
ZipArchive::CM_PKWARE_IMPLODE
(integer)
ZipArchive::CM_BZIP2
(integer)
ZipArchive::CM_LZMA
(integer)
ZipArchive::CM_LZMA2
(integer)
ZipArchive::CM_ZSTD
(integer)
ZipArchive::CM_XZ
(integer)
ZipArchive::ER_OK
(integer)
ZipArchive::ER_MULTIDISK
(integer)
ZipArchive::ER_RENAME
(integer)
ZipArchive::ER_CLOSE
(integer)
ZipArchive::ER_SEEK
(integer)
ZipArchive::ER_READ
(integer)
ZipArchive::ER_WRITE
(integer)
ZipArchive::ER_CRC
(integer)
ZipArchive::ER_ZIPCLOSED
(integer)
ZipArchive::ER_NOENT
(integer)
ZipArchive::ER_EXISTS
(integer)
ZipArchive::ER_OPEN
(integer)
ZipArchive::ER_TMPOPEN
(integer)
ZipArchive::ER_ZLIB
(integer)
ZipArchive::ER_MEMORY
(integer)
ZipArchive::ER_CHANGED
(string)
ZipArchive::ER_COMPNOTSUPP
(integer)
ZipArchive::ER_EOF
(integer)
ZipArchive::ER_INVAL
(integer)
ZipArchive::ER_NOZIP
(integer)
ZipArchive::ER_INTERNAL
(integer)
ZipArchive::ER_INCONS
(integer)
ZipArchive::ER_REMOVE
(integer)
ZipArchive::ER_DELETED
(integer)
ZipArchive::ER_ENCRNOTSUPP
(integer)
ZipArchive::ER_RDONLY
(integer)
ZipArchive::ER_NOPASSWD
(integer)
ZipArchive::ER_WRONGPASSWD
(integer)
ZipArchive::ZIP_ER_OPNOTSUPP
(integer)
ZipArchive::ZIP_ER_INUSE
(integer)
ZipArchive::ZIP_ER_TELL
(integer)
ZipArchive::ZIP_ER_COMPRESSED_DATA
(integer)
ZipArchive::ER_CANCELLED
(integer)
ZipArchive::EM_NONE
(integer)
ZipArchive::EM_TRAD_PKWARE
(integer)
ZipArchive::EM_AES_128
(integer)
ZipArchive::EM_AES_192
(integer)
ZipArchive::EM_AES_256
(integer)
ZipArchive::EM_UNKNOWN
(integer)
ZipArchive::LIBZIP_VERSION
(string)
ZipArchive::OPSYS_DOS
(integer)
ZipArchive::OPSYS_AMIGA
(integer)
ZipArchive::OPSYS_OPENVMS
(integer)
ZipArchive::OPSYS_UNIX
(integer)
ZipArchive::OPSYS_VM_CMS
(integer)
ZipArchive::OPSYS_ATARI_ST
(integer)
ZipArchive::OPSYS_OS_2
(integer)
ZipArchive::OPSYS_MACINTOSH
(integer)
ZipArchive::OPSYS_Z_SYSTEM
(integer)
ZipArchive::OPSYS_CPM
(integer)
ZipArchive::OPSYS_WINDOWS_NTFS
(integer)
ZipArchive::OPSYS_MVS
(integer)
ZipArchive::OPSYS_VSE
(integer)
ZipArchive::OPSYS_ACORN_RISC
(integer)
ZipArchive::OPSYS_VFAT
(integer)
ZipArchive::OPSYS_ALTERNATE_MVS
(integer)
ZipArchive::OPSYS_BEOS
(integer)
ZipArchive::OPSYS_TANDEM
(integer)
ZipArchive::OPSYS_OS_400
(integer)
ZipArchive::OPSYS_OS_X
(integer)
ZipArchive::OPSYS_DEFAULT
(integer)