]> granicus.if.org Git - php/commitdiff
Use of bundled libzip is deprecated
authorRemi Collet <remi@php.net>
Wed, 31 May 2017 07:56:01 +0000 (09:56 +0200)
committerRemi Collet <remi@php.net>
Wed, 31 May 2017 07:56:01 +0000 (09:56 +0200)
NEWS
ext/zip/config.m4

diff --git a/NEWS b/NEWS
index a5c034b51d40e1ca9313466c16ed6d7ead123ee6..f8b8bf7d82f1aaef8222eb93c7b1b47fe384c85f 100644 (file)
--- 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! >>>
index 83798ee7929893f34e460ab06be60c145b19f231..a8f028957ebc406195ff5db73bb79364a995aca8 100644 (file)
@@ -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\