Browse Source

Use of bundled libzip is deprecated

pull/2391/merge
Remi Collet 9 years ago
parent
commit
77cca632da
  1. 1
      NEWS
  2. 6
      ext/zip/config.m4

1
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! >>>

6
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\

Loading…
Cancel
Save