Build ext/zip as shared library by default on Windows

This allows users to use PECL/zip, which is well maintained and often
brings new features which are not yet available in ext/zip, as drop-in
replacement for the official Windows php-src builds.

Closes GH-8549.
This commit is contained in:
Christoph M. Becker 2022-05-13 14:59:12 +02:00
parent 7fedb43f15
commit 33fc9e5a77
No known key found for this signature in database
GPG Key ID: D66C9593118BCCB6
3 changed files with 6 additions and 1 deletions

2
NEWS
View File

@ -77,5 +77,7 @@ PHP NEWS
. add ZipArchive::clearError() method . add ZipArchive::clearError() method
. add ZipArchive::getStreamName() method . add ZipArchive::getStreamName() method
. add ZipArchive::getStreamIndex() method . add ZipArchive::getStreamIndex() method
. On Windows, the Zip extension is now built as shared library (DLL) by
default. (cmb)
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>> <<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

View File

@ -222,6 +222,9 @@ PHP 8.2 UPGRADE NOTES
the configuration option --with-oci8 has been dropped. --with-oci8-11g, the configuration option --with-oci8 has been dropped. --with-oci8-11g,
--with-oci8-12c and --with-oci8-19 are still supported. --with-oci8-12c and --with-oci8-19 are still supported.
- Zip:
. The Zip extension is now built as shared library (DLL) by default.
======================================== ========================================
13. Other Changes 13. Other Changes
======================================== ========================================

View File

@ -1,6 +1,6 @@
// vim:ft=javascript // vim:ft=javascript
ARG_ENABLE("zip", "ZIP support", "yes"); ARG_ENABLE("zip", "ZIP support", "yes,shared");
if (PHP_ZIP != "no") { if (PHP_ZIP != "no") {
if (CHECK_HEADER_ADD_INCLUDE("zip.h", "CFLAGS_ZIP", PHP_PHP_BUILD + "\\include;" + PHP_EXTRA_INCLUDES) && if (CHECK_HEADER_ADD_INCLUDE("zip.h", "CFLAGS_ZIP", PHP_PHP_BUILD + "\\include;" + PHP_EXTRA_INCLUDES) &&