mod_php_install.sh: apply security patches for PHP 7.4.33.

Apply for PHP 7.4.33, in this order: cve-2026-109618-109619, sury-31,
xlts-1, xlts-2, sury-31-re2c-generated. All apply without fuzz, also
on top of PHP-7.4-OpenSSL-3.0-compatibility.patch. The generated files
are marked as up to date afterwards, as for 8.0.30 and 8.1.34.

Tested on web-05 (Debian 13): build, install and php-fpm start OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrisandClaude Opus 5.5 committed 2026-11-20 18:47:38 +01:00
1 parent 6a3b03fd9f
commit 06bea0b16f
1 file changed
+21 -2
+21 -2
View File
@@ -6399,9 +6399,19 @@ else
echo_skipped echo_skipped
fi fi
# - Security patches for PHP 8.0.30 and 8.1.34 # - Security patches for PHP 7.4.33, 8.0.30 and 8.1.34
# - (source: omega8cc/boa, aegir/patches/php-sec) # - (source: omega8cc/boa, aegir/patches/php-sec)
# - # -
# - PHP 7.4.33:
# - php-7.4.33-cve-2026-109618-109619.patch
# - php-7.4.33-sury-31.patch (backports from 8.x, Debian/sury)
# - php-7.4.33-xlts-1.patch (mysqlnd)
# - php-7.4.33-xlts-2.patch
# - php-7.4.33-sury-31-re2c-generated.patch
# - (own patch: the *.re hunks of sury-31 for pdo_sql_parser and
# - url_scanner_ex applied to the generated *.c files, so the fixes
# - are built without re2c)
# -
# - PHP 8.0.30: # - PHP 8.0.30:
# - php-8.0.30-cve-2026-109618-109619.patch # - php-8.0.30-cve-2026-109618-109619.patch
# - php-8.0.30-sury-25.patch (backports from 8.x, Debian/sury) # - php-8.0.30-sury-25.patch (backports from 8.x, Debian/sury)
@@ -6423,7 +6433,8 @@ fi
# - # -
# - Order matters: the CVE-2026-109618/109619 patch MUST be applied before # - Order matters: the CVE-2026-109618/109619 patch MUST be applied before
# - the sury patch, otherwise hunk #4 of main/rfc1867.c fails. In the order # - the sury patch, otherwise hunk #4 of main/rfc1867.c fails. In the order
# - below all patches apply cleanly (no fuzz) - for 8.0.30 also on top of # - below all patches apply cleanly (no fuzz) - for 7.4.33 and 8.0.30 also
# - on top of 'PHP-7.4-OpenSSL-3.0-compatibility.patch' and
# - 'PHP-8.0-OpenSSL-3.0-compatibility.patch'. # - 'PHP-8.0-OpenSSL-3.0-compatibility.patch'.
# - # -
# - The patches are applied to the unpacked tree '${_srcdir}/php-${VERSION}' # - The patches are applied to the unpacked tree '${_srcdir}/php-${VERSION}'
@@ -6433,6 +6444,14 @@ fi
# - Security fixes: if one fails, abort - never build PHP without them. # - Security fixes: if one fails, abort - never build PHP without them.
# - # -
case "$VERSION" in case "$VERSION" in
7.4.33)
_sec_patches="
php-7.4.33-cve-2026-109618-109619.patch
php-7.4.33-sury-31.patch
php-7.4.33-xlts-1.patch
php-7.4.33-xlts-2.patch
php-7.4.33-sury-31-re2c-generated.patch"
;;
8.0.30) 8.0.30)
_sec_patches=" _sec_patches="
php-8.0.30-cve-2026-109618-109619.patch php-8.0.30-cve-2026-109618-109619.patch