com php-src: Use of bundled libzip is deprecated: NEWS ext/zip/config.m4
| From: | Remi Collet | Date: | Wed, 31 May 2017 07:56:01 +0000 |
| Subject: | com php-src: Use of bundled libzip is deprecated: NEWS ext/zip/config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97966@lists.php.net to get a copy of this message | ||
Commit: 77cca632dad2b7a4720fb2aa92950789c5485f2c
Author: Remi Collet <remi@php.net> Wed, 31 May 2017 09:56:01 +0200
Parents: 0bad6d7d6b9302c86c6b02620f0b3f5357f4593c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=77cca632dad2b7a4720fb2aa92950789c5485f2c
Log:
Use of bundled libzip is deprecated
Changed paths:
M NEWS
M ext/zip/config.m4
Diff:
diff --git a/NEWS b/NEWS
index a5c034b..f8b8bf7 100644
--- a/NEWS
+++ b/NEWS
@@ -220,6 +220,7 @@ PHP NEWS
- ZIP:
. Add support for encrypted archives. (Remi)
+ . Use of bundled libzip is deprecated, --with-libzip option is recommended. (Remi)
. Fixed Bug #73803 (Reflection of ZipArchive does not show public properties). (Remi)
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
diff --git a/ext/zip/config.m4 b/ext/zip/config.m4
index 83798ee..a8f0289 100644
--- a/ext/zip/config.m4
+++ b/ext/zip/config.m4
@@ -104,6 +104,7 @@ if test "$PHP_ZIP" != "no"; then
PHP_ADD_LIBRARY_WITH_PATH(zip, $LIBZIP_LIBDIR, ZIP_SHARED_LIBADD)
AC_DEFINE(HAVE_ENCRYPTION, 1, [Libzip >= 1.2.0 with encryption support])
], [
+ AC_MSG_WARN(Libzip >= 1.2.0 needed for encryption support)
], [
-L$LIBZIP_LIBDIR
])
@@ -112,6 +113,11 @@ if test "$PHP_ZIP" != "no"; then
PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c, $ext_shared,, $LIBZIP_CFLAGS)
PHP_SUBST(ZIP_SHARED_LIBADD)
else
+ AC_MSG_WARN(========================================================);
+ AC_MSG_WARN(Use of bundled libzip is deprecated and will be removed.);
+ AC_MSG_WARN(Some features such as encryption are not available.);
+ AC_MSG_WARN(Use system library and --with-libzip is recommended.);
+ AC_MSG_WARN(========================================================);
PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_add_dir.c lib/zip_add_entry.c\