下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
ZipArchive 使用类常量。有各种类型的常量,主要有:Flag(以 FL_
为前缀)、全局 Flag(以 AFL_
为前缀)、错误(以 ER_
为前缀)以及模式(没有前缀)。
ZIPARCHIVE::CREATE
(int)
ZIPARCHIVE::OVERWRITE
(int)
ZIPARCHIVE::EXCL
(int)
ZipArchive::RDONLY
(int)
ZIPARCHIVE::CHECKCONS
(int)
ZipArchive::AFL_RDONLY
(int)
ZipArchive::AFL_IS_TORRENTZIP
(int)
ZipArchive::AFL_WANT_TORRENTZIP
(int)
ZipArchive::AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE
(int)
ZIPARCHIVE::FL_NOCASE
(int)
ZIPARCHIVE::FL_NODIR
(int)
ZIPARCHIVE::FL_COMPRESSED
(int)
ZIPARCHIVE::FL_UNCHANGED
(int)
ZipArchive::FL_RECOMPRESS
(int)
ZipArchive::FL_ENCRYPTED
(int)
ZipArchive::FL_OVERWRITE
(int)
ZipArchive::FL_LOCAL
(int)
ZipArchive::FL_CENTRAL
(int)
ZipArchive::FL_ENC_GUESS
(int)
ZipArchive::FL_ENC_RAW
(int)
ZipArchive::FL_ENC_STRICT
(int)
ZipArchive::FL_ENC_UTF_8
(int)
ZipArchive::FL_ENC_CP437
(int)
ZipArchive::FL_OPEN_FILE_NOW
(int)
ZIPARCHIVE::CM_DEFAULT
(int)
ZIPARCHIVE::CM_STORE
(int)
ZIPARCHIVE::CM_SHRINK
(int)
ZIPARCHIVE::CM_REDUCE_1
(int)
ZIPARCHIVE::CM_REDUCE_2
(int)
ZIPARCHIVE::CM_REDUCE_3
(int)
ZIPARCHIVE::CM_REDUCE_4
(int)
ZIPARCHIVE::CM_IMPLODE
(int)
ZIPARCHIVE::CM_DEFLATE
(int)
ZIPARCHIVE::CM_DEFLATE64
(int)
ZIPARCHIVE::CM_PKWARE_IMPLODE
(int)
ZIPARCHIVE::CM_BZIP2
(int)
ZipArchive::CM_LZMA
(int)
ZipArchive::CM_LZMA2
(int)
ZipArchive::CM_ZSTD
(int)
ZipArchive::CM_XZ
(int)
ZipArchive::CM_TERSE
(int)
ZipArchive::CM_LZ77
(int)
ZipArchive::CM_WAVPACK
(int)
ZipArchive::CM_PPMD
(int)
ZIPARCHIVE::ER_OK
(int)
ZIPARCHIVE::ER_MULTIDISK
(int)
ZIPARCHIVE::ER_RENAME
(int)
ZIPARCHIVE::ER_CLOSE
(int)
ZIPARCHIVE::ER_SEEK
(int)
ZIPARCHIVE::ER_READ
(int)
ZIPARCHIVE::ER_WRITE
(int)
ZIPARCHIVE::ER_CRC
(int)
ZIPARCHIVE::ER_ZIPCLOSED
(int)
ZIPARCHIVE::ER_NOENT
(int)
ZIPARCHIVE::ER_EXISTS
(int)
ZIPARCHIVE::ER_OPEN
(int)
ZIPARCHIVE::ER_TMPOPEN
(int)
ZIPARCHIVE::ER_ZLIB
(int)
ZIPARCHIVE::ER_MEMORY
(int)
ZIPARCHIVE::ER_CHANGED
(int)
ZIPARCHIVE::ER_COMPNOTSUPP
(int)
ZIPARCHIVE::ER_EOF
(int)
ZIPARCHIVE::ER_INVAL
(int)
ZIPARCHIVE::ER_NOZIP
(int)
ZIPARCHIVE::ER_INTERNAL
(int)
ZIPARCHIVE::ER_INCONS
(int)
ZIPARCHIVE::ER_REMOVE
(int)
ZIPARCHIVE::ER_DELETED
(int)
ZipArchive::ER_ENCRNOTSUPP
(int)
ZipArchive::ER_RDONLY
(int)
ZipArchive::ER_NOPASSWD
(int)
ZipArchive::ER_WRONGPASSWD
(int)
ZipArchive::ER_OPNOTSUPP
(int)
ZipArchive::ER_INUSE
(int)
ZipArchive::ER_TELL
(int)
ZipArchive::ER_COMPRESSED_DATA
(int)
ZipArchive::ER_CANCELLED
(int)
ZipArchive::ER_DATA_LENGTH
(int)
ZipArchive::ER_NOT_ALLOWED
(int)
ZipArchive::EM_NONE
(int)
ZipArchive::EM_TRAD_PKWARE
(int)
ZipArchive::EM_AES_128
(int)
ZipArchive::EM_AES_192
(int)
ZipArchive::EM_AES_256
(int)
ZipArchive::EM_UNKNOWN
(int)
ZipArchive::LENGTH_TO_END
(int)
ZipArchive::ER_DATA_LENGTH
)。
自 PHP 8.3.0 和 PECL zip 1.22.2 起可用。
ZipArchive::LENGTH_UNCHECKED
(int)
ZipArchive::LIBZIP_VERSION
(string)
ZipArchive::OPSYS_DOS
(int)
ZipArchive::OPSYS_AMIGA
(int)
ZipArchive::OPSYS_OPENVMS
(int)
ZipArchive::OPSYS_UNIX
(int)
ZipArchive::OPSYS_VM_CMS
(int)
ZipArchive::OPSYS_ATARI_ST
(int)
ZipArchive::OPSYS_OS_2
(int)
ZipArchive::OPSYS_MACINTOSH
(int)
ZipArchive::OPSYS_Z_SYSTEM
(int)
ZipArchive::OPSYS_CPM
(int)
ZipArchive::OPSYS_WINDOWS_NTFS
(int)
ZipArchive::OPSYS_MVS
(int)
ZipArchive::OPSYS_VSE
(int)
ZipArchive::OPSYS_ACORN_RISC
(int)
ZipArchive::OPSYS_VFAT
(int)
ZipArchive::OPSYS_ALTERNATE_MVS
(int)
ZipArchive::OPSYS_BEOS
(int)
ZipArchive::OPSYS_TANDEM
(int)
ZipArchive::OPSYS_OS_400
(int)
ZipArchive::OPSYS_OS_X
(int)
ZipArchive::OPSYS_DEFAULT
(int)