[packages/php/PHP_8_5] Link libphp_common with libz again

arekm arekm at pld-linux.org
Thu Nov 19 18:49:44 CET 2026


commit 272081f8c4c232f0de83a918f811997797cdca98
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 18:35:41 2026 +0100

    Link libphp_common with libz again
    
    getimagesize() in core calls uncompress(), but since libxml2-devel
    2.15.4-2 keeps -lz private it no longer reaches the link line and
    libphp_common lost its libz dependency.

 php-zlib-for-getimagesize.patch | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/php-zlib-for-getimagesize.patch b/php-zlib-for-getimagesize.patch
index 50a0ed5..508ba8c 100644
--- a/php-zlib-for-getimagesize.patch
+++ b/php-zlib-for-getimagesize.patch
@@ -34,3 +34,12 @@ upstream: https://github.com/php/php-src/pull/4681
  #else
  			php_error_docref(NULL, E_NOTICE, "The image is a compressed SWF file, but you do not have a static version of the zlib extension enabled");
 
+--- php-8.5.13/ext/zlib/config0.m4
++++ php-8.5.13/ext/zlib/config0.m4
+@@ -12,4 +12,6 @@
+       [$ext_shared],,
+       [-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
+     PHP_SUBST([ZLIB_SHARED_LIBADD])])
++  dnl getimagesize() in core uses uncompress() even with shared zlib
++  PHP_EVAL_LIBLINE([$ZLIB_LIBS])
+ fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/272081f8c4c232f0de83a918f811997797cdca98



More information about the pld-cvs-commit mailing list