Skip to content

Commit 42226fc

Browse files
committed
add ZipArchive::CM_XZ constant (in upcoming libzip 1.8.0)
1 parent 7686118 commit 42226fc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ext/zip/php_zip.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3082,6 +3082,9 @@ static PHP_MINIT_FUNCTION(zip)
30823082
#ifdef ZIP_CM_LZMA2
30833083
REGISTER_ZIP_CLASS_CONST_LONG("CM_LZMA2", ZIP_CM_LZMA2);
30843084
#endif
3085+
#ifdef ZIP_CM_ZSTD
3086+
REGISTER_ZIP_CLASS_CONST_LONG("CM_ZSTD", ZIP_CM_ZSTD);
3087+
#endif
30853088
#ifdef ZIP_CM_XZ
30863089
REGISTER_ZIP_CLASS_CONST_LONG("CM_XZ", ZIP_CM_XZ);
30873090
#endif

ext/zip/php_zip.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern zend_module_entry zip_module_entry;
3131
#define ZIP_OVERWRITE ZIP_TRUNCATE
3232
#endif
3333

34-
#define PHP_ZIP_VERSION "1.19.0"
34+
#define PHP_ZIP_VERSION "1.19.1-dev"
3535

3636
#define ZIP_OPENBASEDIR_CHECKPATH(filename) php_check_open_basedir(filename)
3737

0 commit comments

Comments
 (0)