Skip to content

Commit 33fc9e5

Browse files
committed
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.
1 parent 7fedb43 commit 33fc9e5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,7 @@ PHP NEWS
7777
. add ZipArchive::clearError() method
7878
. add ZipArchive::getStreamName() method
7979
. add ZipArchive::getStreamIndex() method
80+
. On Windows, the Zip extension is now built as shared library (DLL) by
81+
default. (cmb)
8082

8183
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ PHP 8.2 UPGRADE NOTES
222222
the configuration option --with-oci8 has been dropped. --with-oci8-11g,
223223
--with-oci8-12c and --with-oci8-19 are still supported.
224224

225+
- Zip:
226+
. The Zip extension is now built as shared library (DLL) by default.
227+
225228
========================================
226229
13. Other Changes
227230
========================================

ext/zip/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// vim:ft=javascript
22

3-
ARG_ENABLE("zip", "ZIP support", "yes");
3+
ARG_ENABLE("zip", "ZIP support", "yes,shared");
44

55
if (PHP_ZIP != "no") {
66
if (CHECK_HEADER_ADD_INCLUDE("zip.h", "CFLAGS_ZIP", PHP_PHP_BUILD + "\\include;" + PHP_EXTRA_INCLUDES) &&

0 commit comments

Comments
 (0)