com php-src: add ZipArchive::CM_XZ constant (in u pcoming libzip 1.8.0): ext/zip/php_zip. c ext/zip/php_zip.h

From: Date: Tue, 21 Jul 2020 12:43:52 +0000
Subject: com php-src: add ZipArchive::CM_XZ constant (in u pcoming libzip 1.8.0): ext/zip/php_zip. c ext/zip/php_zip.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112293@lists.php.net to get a copy of this message
Commit: 42226fcf0369c7d410f47f45e0249b3dcf01c78a Author: Remi Collet <remi@php.net> Tue, 21 Jul 2020 14:43:39 +0200 Parents: 7686118212f6785320c5dac72f2b6d02d5021faf Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=42226fcf0369c7d410f47f45e0249b3dcf01c78a Log: add ZipArchive::CM_XZ constant (in upcoming libzip 1.8.0) Changed paths: M ext/zip/php_zip.c M ext/zip/php_zip.h Diff: diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 1793f5d018..841488bd61 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -3082,6 +3082,9 @@ static PHP_MINIT_FUNCTION(zip) #ifdef ZIP_CM_LZMA2 REGISTER_ZIP_CLASS_CONST_LONG("CM_LZMA2", ZIP_CM_LZMA2); #endif +#ifdef ZIP_CM_ZSTD + REGISTER_ZIP_CLASS_CONST_LONG("CM_ZSTD", ZIP_CM_ZSTD); +#endif #ifdef ZIP_CM_XZ REGISTER_ZIP_CLASS_CONST_LONG("CM_XZ", ZIP_CM_XZ); #endif diff --git a/ext/zip/php_zip.h b/ext/zip/php_zip.h index ddc35df556..92df580874 100644 --- a/ext/zip/php_zip.h +++ b/ext/zip/php_zip.h @@ -31,7 +31,7 @@ extern zend_module_entry zip_module_entry; #define ZIP_OVERWRITE ZIP_TRUNCATE #endif -#define PHP_ZIP_VERSION "1.19.0" +#define PHP_ZIP_VERSION "1.19.1-dev" #define ZIP_OPENBASEDIR_CHECKPATH(filename) php_check_open_basedir(filename)

« previous php.cvs (#112293) next »