下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
ZipArchive 使用的类常量。 有以下三类常量:Flags(以 FL_ 为前缀),errors(以 ER_ 为前缀)以及 mode(没有前缀)。
ZIPARCHIVE::CREATE
(integer)
ZIPARCHIVE::OVERWRITE
(integer)
ZIPARCHIVE::EXCL
(integer)
ZIPARCHIVE::CHECKCONS
(integer)
ZIPARCHIVE::FL_NOCASE
(integer)
ZIPARCHIVE::FL_NODIR
(integer)
ZIPARCHIVE::FL_COMPRESSED
(integer)
ZIPARCHIVE::FL_UNCHANGED
(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::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)
scott at bluecamel dot eml dot cc (2008-06-13 10:13:27)
#define ZIP_ER_OK 0 /* N No error */
#define ZIP_ER_MULTIDISK 1 /* N Multi-disk zip archives not supported */
#define ZIP_ER_RENAME 2 /* S Renaming temporary file failed */
#define ZIP_ER_CLOSE 3 /* S Closing zip archive failed */
#define ZIP_ER_SEEK 4 /* S Seek error */
#define ZIP_ER_READ 5 /* S Read error */
#define ZIP_ER_WRITE 6 /* S Write error */
#define ZIP_ER_CRC 7 /* N CRC error */
#define ZIP_ER_ZIPCLOSED 8 /* N Containing zip archive was closed */
#define ZIP_ER_NOENT 9 /* N No such file */
#define ZIP_ER_EXISTS 10 /* N File already exists */
#define ZIP_ER_OPEN 11 /* S Can't open file */
#define ZIP_ER_TMPOPEN 12 /* S Failure to create temporary file */
#define ZIP_ER_ZLIB 13 /* Z Zlib error */
#define ZIP_ER_MEMORY 14 /* N Malloc failure */
#define ZIP_ER_CHANGED 15 /* N Entry has been changed */
#define ZIP_ER_COMPNOTSUPP 16 /* N Compression method not supported */
#define ZIP_ER_EOF 17 /* N Premature EOF */
#define ZIP_ER_INVAL 18 /* N Invalid argument */
#define ZIP_ER_NOZIP 19 /* N Not a zip archive */
#define ZIP_ER_INTERNAL 20 /* N Internal error */
#define ZIP_ER_INCONS 21 /* N Zip archive inconsistent */
#define ZIP_ER_REMOVE 22 /* S Can't remove file */
#define ZIP_ER_DELETED 23 /* N Entry has been deleted */