Jamalofski/php-eol-security
关于
Unofficial Windows builds of end-of-life PHP versions (7.2, 7.3, 7.4, 8.0, 8.1) with security fixes, made with the official PHP Windows builder
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +6
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文php-eol-security — unofficial security builds of end-of-life PHP
Once a PHP branch reaches end of life, the PHP team stops publishing releases and Windows binaries for it, even when a fix exists. This repository builds Windows binaries of end-of-life branches with the security fixes listed in PATCHES.md.
These are not official PHP Group binaries.
Versions
<last official release>-pl<N>, for example 8.1.34-pl1, 8.1.34-pl2…,
named "PHP 8.1.34 Patch Level 1", "Patch Level 2"…
pl(patch level) is understood byversion_compare()and Composer:8.1.34 < 8.1.34-pl1 < 8.1.34-pl2 < 8.1.35.- Each patch level includes the fixes of the previous ones.
- Release tags are
php-<version>; zips keep the official naming (php-8.1.34-pl1-Win32-vs16-x64.zip,php-8.1.34-pl1-nts-Win32-vs16-x64.zip…). - Which zip: Thread Safe (
php-<version>-Win32-…) for Apache with mod_php, as only it contains the Apache module; NTS (php-<version>-nts-Win32-…) for IIS, nginx or the command line. Take x64 or x86 to match your server. The devel packs are only for building extensions. Since patch level 3 of 8.1, 8.0 and 7.4 and patch level 1 of 7.3 and 7.2, releases no longer carry the debug and test packs, which almost nobody downloaded.
Current patch levels. Each one carries the php-src security fixes backported since the end of life of the branch by Remi Collet and Ondřej Surý, listed in PATCHES.md. Binaries are attached to the releases.
| Branch | Version | Toolchain |
|---|---|---|
| 8.1 | PHP 8.1.34 Patch Level 3 (8.1.34-pl3) |
vs16 (MSVC v142, Visual C++ 2019) |
| 8.0 | PHP 8.0.30 Patch Level 3 (8.0.30-pl3) |
vs16 (MSVC v142, Visual C++ 2019) |
| 7.4 | PHP 7.4.33 Patch Level 3 (7.4.33-pl3) |
vc15 (MSVC v141, Visual C++ 2017) |
| 7.3 | PHP 7.3.33 Patch Level 1 (7.3.33-pl1) |
vc15 (MSVC v141, Visual C++ 2017) |
| 7.2 | PHP 7.2.34 Patch Level 1 (7.2.34-pl1) |
vc15 (MSVC v141, Visual C++ 2017) |
| 5.6 | PHP 5.6.40 Patch Level 1 (5.6.40-pl1) |
VC11 (MSVC v110, Visual C++ 2012) |
For 8.1, 8.0 and 7.4, patch level 1 carried only the fix for CVE-2026-109618 and CVE-2026-109619 that the PHP team published for these branches. 7.3, 7.2 and 5.6 start at patch level 1 with all the backports of their branch.
PHP 5.6 needs the
Visual C++ 2012 Update 4 redistributable
(msvcr110.dll), as the official 5.6 builds, and OPENSSL_CONF set to the
extras\ssl\openssl.cnf of the zip, or openssl_pkey_new() and openssl_csr_new() fail.
Known issues
- A
SoapClientcrashes (php/php-src#25628) when loading a WSDL that imports a schema with a DOCTYPE, such as the W3C XMLDSIG schema. It comes from the GHSA-4646-p932-gw34 fix, in every current patch level as in the official releases of 2026-11-19; php-src fixed it on 2026-11-30 (php/php-src@7d0baa8), and the next patch levels will include it once Remi Collet's branches have it.
How it is built
| Sources | the last official release of the branch plus the php-src security fixes backported since by Remi Collet and Ondřej Surý in remicollet/php-src-security and checked commit by commit against php-src (see below); pinned per branch in versions.json. The only change made here is the version string |
| Build Provider | Jamal TANTAOUI (unofficial EOL security build) - https://github.com/Jamalofski/php-eol-security (8.0 and later; PHP 7 and 5.6 have no such entry) |
| Toolchain | the one of the official builds of the branch (table above), on windows-2022 |
| Build scripts | the official php/php-windows-builder (pinned commit): same configure flags and PGO as the official releases of the branch; for PHP 7, the workflow adds back OCI8 and PDO_OCI, which the PHP 7 releases shipped and the builder no longer enables. The builder starts at 7.1: PHP 5.6 is built by php56-vc11.yml as its official releases were, with Visual C++ 2012 installed from Microsoft's images, the PHP 5.x SDK and nmake snap |
| Oracle SDK | OCI8 and PDO_OCI are built against the current Oracle Instant Client SDK, as the official builder does |
| Dependencies | official packages from downloads.php.net for the branch. The package series of 7.3 and 7.2 stopped in 2020-2021 (OpenSSL 1.1.1l and 1.1.1g, curl 7.70.0 and 7.67.0, zlib 1.2.11): their builds take the newer vc15 packages of 7.4 for OpenSSL (1.1.1s, the last vc15 build published), curl, nghttp2, libssh2, libxml2 and zlib (deps_overrides in versions.json), and the build checks the versions the binaries load. 5.6 takes the vc11 package of its official builds, tied to OpenSSL 1.0: OpenSSL 1.1.1w, zlib and the libraries that use OpenSSL (curl, libssh2, libpq, OpenLDAP, net-snmp) are rebuilt with Visual C++ 2012 from sources pinned by SHA-256, and the build checks the versions the binaries load |
| SBOM | each binary zip comes with its CycloneDX SBOM (.cdx.json), produced by the official builder (from patch level 2; patch level 2 also had an SPDX copy), for 5.6 by sbom56.py |
| Variants | x64 / x86, TS / NTS |
ABI and CRT are those of the official builds of the branch: existing extension DLLs load as before.
Everything is in .github/workflows/build.yml, and
php56-vc11.yml for 5.6. Each
release links the run that produced it; GitHub keeps run logs for 90 days.
Verification of the sources
Before every build, verify_backports.py checks
that the pinned sources are the official release plus official php-src commits, and the
build stops otherwise:
- the base commit must have the tree of the official release tag;
- every later commit is compared, with
git patch-id, to the php/php-src commit it was taken from (its "cherry picked from commit" line, or the same author and subject). That commit must be on a branch or tag of php/php-src: GitHub also serves the commits of its forks under php/php-src, so a line naming a commit of another backport branch is followed to the official one; - a commit passes when it is identical to it; when it differs only in files that are not part of the binaries (NEWS, tests); or when it adds and removes the same lines in the same functions, the older code around the change being the only difference;
- any other commit, adapted to the older branch or without an official counterpart, needs
a review recorded in
verification/reviews.json.
The reports in verification/ list every commit with its official
counterpart and result, and show what each reviewed commit changes.
Verify
php -v # PHP 8.1.34-pl3 ...
php -i | findstr "Build Provider" # Jamal TANTAOUI (unofficial EOL security build) ... (8.0+)
Check the zips against SHA256SUMS attached to the release. Each zip also has a
signed build provenance attestation, which ties it to the workflow run and the
commit that built it:
gh attestation verify php-8.1.34-pl3-nts-Win32-vs16-x64.zip --repo Jamalofski/php-eol-security
Upstream watch
Every Monday, watch-upstream.yml opens an
issue labelled upstream-watch when:
- the backport branch a patch level is built from gets new commits;
- the official
PHP-x.ybranch, or an officialPHP-x.y-*fix branch, gets new commits, or a new fix branch appears; - Remi's other PHP 5.6 branch,
PHP-5.6-security-backports(OpenSSL 1.0 API), gets new commits; - php-src publishes new security advisories.
Limits
- Only the fixes listed in PATCHES.md. Bundled libraries stay at the versions of the branch (OpenSSL 1.1.1, itself end-of-life, among others), apart from those rebuilt for 5.6.
- No build of PHP 7.1, 7.0 or 5.5 and older.
- Migrating to a supported PHP version remains the real fix.
- Provided as is, without warranty.
License
This product includes PHP software, freely available from
http://www.php.net/software/. PHP is distributed under the PHP License,
version 3.01. Each zip ships it as license.txt, with the licenses of the code PHP
bundles in readme-redist-bins.txt, as the official zips do.
探索相关项目
加载中…