@@ -3082,6 +3082,9 @@ static PHP_MINIT_FUNCTION(zip)
3082
3082
REGISTER_ZIP_CLASS_CONST_LONG ("CM_LZMA" , ZIP_CM_LZMA );
3083
3083
#ifdef ZIP_CM_LZMA2
3084
3084
REGISTER_ZIP_CLASS_CONST_LONG ("CM_LZMA2" , ZIP_CM_LZMA2 );
3085
+ #endif
3086
+ #ifdef ZIP_CM_XZ
3087
+ REGISTER_ZIP_CLASS_CONST_LONG ("CM_XZ" , ZIP_CM_XZ );
3085
3088
#endif
3086
3089
REGISTER_ZIP_CLASS_CONST_LONG ("CM_TERSE" , ZIP_CM_TERSE );
3087
3090
REGISTER_ZIP_CLASS_CONST_LONG ("CM_LZ77" , ZIP_CM_LZ77 );
@@ -3113,6 +3116,27 @@ static PHP_MINIT_FUNCTION(zip)
3113
3116
REGISTER_ZIP_CLASS_CONST_LONG ("ER_INCONS" , ZIP_ER_INCONS ); /* N Zip archive inconsistent */
3114
3117
REGISTER_ZIP_CLASS_CONST_LONG ("ER_REMOVE" , ZIP_ER_REMOVE ); /* S Can't remove file */
3115
3118
REGISTER_ZIP_CLASS_CONST_LONG ("ER_DELETED" , ZIP_ER_DELETED ); /* N Entry has been deleted */
3119
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_ENCRNOTSUPP" , ZIP_ER_ENCRNOTSUPP );/* N Encryption method not supported */
3120
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_RDONLY" , ZIP_ER_RDONLY ); /* N Read-only archive */
3121
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_NOPASSWD" , ZIP_ER_NOPASSWD ); /* N Entry has been deleted */
3122
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_WRONGPASSWD" , ZIP_ER_WRONGPASSWD );/* N Wrong password provided */
3123
+ /* since 1.0.0 */
3124
+ #ifdef ZIP_ER_OPNOTSUPP
3125
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_OPNOTSUPP" , ZIP_ER_OPNOTSUPP ); /* N Operation not supported */
3126
+ #endif
3127
+ #ifdef ZIP_ER_INUSE
3128
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_INUSE" , ZIP_ER_INUSE ); /* N Resource still in use */
3129
+ #endif
3130
+ #ifdef ZIP_ER_TELL
3131
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_TELL" , ZIP_ER_TELL ); /* S Tell error */
3132
+ #endif
3133
+ /* since 1.6.0 */
3134
+ #ifdef ZIP_ER_COMPRESSED_DATA
3135
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_COMPRESSED_DATA" , ZIP_ER_COMPRESSED_DATA );/* N Compressed data invalid */
3136
+ #endif
3137
+ #ifdef ZIP_ER_CANCELLED
3138
+ REGISTER_ZIP_CLASS_CONST_LONG ("ER_CANCELLED" , ZIP_ER_CANCELLED ); /* N Operation cancelled */
3139
+ #endif
3116
3140
3117
3141
#ifdef ZIP_OPSYS_DEFAULT
3118
3142
REGISTER_ZIP_CLASS_CONST_LONG ("OPSYS_DOS" , ZIP_OPSYS_DOS );
0 commit comments