Apply for PHP 5.6.40, in boa order: openssl3-pkey-export,
round-places-overflow, sury-105, xlts-1, xlts-2. All apply without fuzz
on top of the OpenSSL 1.1.0 compatibility patch and the php-5.6-*.patch
files.
Skip php-5.6-enhanced-universal.patch (php2shell) for 5.6.40: sury-105
brings its own backport of the CVE-2026-109618/109619 fix, the same fix
boa uses for 7.4/8.x. Both change the same code and exclude each other.
Tested on web-04 (Debian 13): build, install and php-fpm start OK.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Applied after php-8.1.34-cve-2026-129291.patch and before
php-8.1.34-sury-9-re2c-generated.patch. The whole sequence applies
without fuzz or offset to php-8.1.34. xlts-2 changes no generated
files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Generalize the PHP 8.1.34 patch block into a per-version patch list
and apply for PHP 8.0.30, in this order: cve-2026-109618-109619,
sury-25, xlts-1, xlts-2, sury-25-re2c-generated (CVE before sury,
otherwise hunk #4 of main/rfc1867.c fails). All apply without fuzz,
also on top of PHP-8.0-OpenSSL-3.0-compatibility.patch. The generated
files are marked as up to date afterwards, as for 8.1.34.
The HTML page check now only looks at the first non-empty line:
php-8.0.30-sury-25.patch contains "<html>" in test files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The patches change sources of generated files (Zend/zend_vm_def.h,
*.re) together with the generated files. Patching left the sources
newer, so make re-ran zend_vm_gen.php with the host's php binary,
producing a broken Zend/zend_vm_opcodes.h ("operator '==' has no left
operand"). Touch the generated files after patching so they are taken
as up to date.
sury-9 changes pdo_sql_parser.re and url_scanner_ex.re without the
generated *.c files, so these fixes needed re2c to be built. Add
php-8.1.34-sury-9-re2c-generated.patch, which applies the same changes
to the generated *.c files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply php-8.1.34-cve-2026-109618-109619.patch, php-8.1.34-sury-9.patch
and php-8.1.34-cve-2026-129291.patch (in this order - otherwise a hunk
of main/rfc1867.c fails) when installing PHP 8.1.34. Abort if a patch
is missing, is an HTML page or does not apply.
Replace the three patch files, which were saved GitHub HTML pages, by
the raw patches from omega8cc/boa (aegir/patches/php-sec).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add 'php-5.6-enhanced-universal.patch' (CVE-2026-109618 / CVE-2026-109619 /
CVE-2026-115560). It is applied after the other php-5.6-*.patch files; on top
of 'php-5.6-session.patch' hunk #4 of ext/session/session.c applies with
fuzz 2, which is expected (verified with 5.6.40). A failure aborts the
installation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>