[packages/php] Up to 8.6.0

arekm arekm at pld-linux.org
Thu Nov 19 19:01:23 CET 2026


commit 74d69c17642d0a33937af581801cec7dc79f6423
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 18:58:27 2026 +0100

    Up to 8.6.0
    
    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.
    
    Fixes CVE-2026-129538, CVE-2026-129506, CVE-2026-129501,
    CVE-2026-129496, CVE-2026-129481, CVE-2026-129474, CVE-2026-129438,
    CVE-2026-129292, CVE-2026-129291, CVE-2026-129289, CVE-2026-129182,
    CVE-2026-128090, CVE-2026-128064, CVE-2026-127960, CVE-2026-126714,
    CVE-2026-115560, CVE-2026-48841, CVE-2026-15353.

 php-zlib-for-getimagesize.patch |  9 +++++++++
 php.spec                        | 12 +++++-------
 2 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/php.spec b/php.spec
index b9ac21d..d5fa8be 100644
--- a/php.spec
+++ b/php.spec
@@ -129,8 +129,8 @@
 %define		orgname		php
 %define		ver_suffix	86
 %define		php_suffix	%{!?with_default_php:%{ver_suffix}}
-%define		subver		RC4
-%define		rel		0.5
+%define		subver		%{nil}
+%define		rel		1
 Summary:	PHP: Hypertext Preprocessor
 Summary(fr.UTF-8):	Le langage de script embarque-HTML PHP
 Summary(pl.UTF-8):	Język skryptowy PHP
@@ -145,10 +145,8 @@ Epoch:		4
 # TSRM which has its own BSD variant
 License:	BSD
 Group:		Libraries
-#XSource0:	https://www.php.net/distributions/%{orgname}-%{version}.tar.xz
-# XSource0-md5:	b78bb233fa181461a6069c90d95a94a4
-Source0:	https://downloads.php.net/~mbeccati/php-%{version}%{subver}.tar.xz
-# Source0-md5:	9ab7ed17a84f49387fbad09c50f5b4a4
+Source0:	https://www.php.net/distributions/%{orgname}-%{version}.tar.xz
+# Source0-md5:	51f36141735095af4b4379fdfc0233a0
 Source1:	opcache.ini
 Source2:	%{orgname}-mod_php.conf
 Source3:	%{orgname}-cgi-fcgi.ini
@@ -268,7 +266,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		_sysconfdir			%{php_sysconfdir}
 
 # must be in sync with source. extra check ensuring that it is so is done in %%build
-%define		php_api_version		20260924
+%define		php_api_version		20261112
 %define		zend_module_api		%{php_api_version}
 %define		zend_extension_api	4%{zend_module_api}
 %define		php_pdo_api_version	20240423
diff --git a/php-zlib-for-getimagesize.patch b/php-zlib-for-getimagesize.patch
index 50a0ed5..8c040fb 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.6.0/ext/zlib/config0.m4
++++ php-8.6.0/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/74d69c17642d0a33937af581801cec7dc79f6423



More information about the pld-cvs-commit mailing list