Skip to content

Commit 45cb9dc

Browse files
committed
Made ZLIB extension built in on Windows. Fixes #21139.
# Approved by the release master. # Will merge this patch into HEAD a bit later.
1 parent 45f5605 commit 45cb9dc

File tree

5 files changed

+37
-6
lines changed

5 files changed

+37
-6
lines changed

main/config.w32.h.in

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
/* Enable / Disable XML extension (default: enabled) */
7676
#define HAVE_LIBEXPAT 1
7777

78+
/* Enable / Disable ZLIB extension (default: enabled) */
79+
#define HAVE_ZLIB 1
80+
7881
/* PHP Runtime Configuration */
7982
#define FORCE_CGI_REDIRECT 1
8083
#define PHP_URL_FOPEN 1

main/internal_functions_win32.c

+6
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@
9090
#if HAVE_TOKENIZER
9191
#include "ext/tokenizer/php_tokenizer.h"
9292
#endif
93+
#if HAVE_ZLIB
94+
#include "ext/zlib/php_zlib.h"
95+
#endif
9396
/* }}} */
9497

9598
/* {{{ php_builtin_extensions[]
@@ -140,6 +143,9 @@ zend_module_entry *php_builtin_extensions[] = {
140143
#if HAVE_LIBEXPAT && HAVE_WDDX
141144
,phpext_wddx_ptr
142145
#endif
146+
#if HAVE_ZLIB
147+
,phpext_zlib_ptr
148+
#endif
143149
};
144150
/* }}} */
145151

php.ini-dist

-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,6 @@ default_socket_timeout = 60
564564
;extension=php_xslt.dll
565565
;extension=php_yaz.dll
566566
;extension=php_zip.dll
567-
;extension=php_zlib.dll
568567

569568

570569
;;;;;;;;;;;;;;;;;;;

php.ini-recommended

-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ default_socket_timeout = 60
579579
;extension=php_xslt.dll
580580
;extension=php_yaz.dll
581581
;extension=php_zip.dll
582-
;extension=php_zlib.dll
583582

584583

585584
;;;;;;;;;;;;;;;;;;;

win32/php4dllts.dsp

+28-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)