Repository navigation
fix: pin static-php-cli to 2.8.5, 3.0.0 breaks the PHP 8.1 and 8.6 builds - #19
Merged
Merged
Conversation
…ilds static-php-cli 3.0.0 was released on 2026-11-30, and the build used the latest release, so the scheduled run started failing: - PHP 8.1: 3.0.0 builds OpenSSL 4.1.0, and PHP 8.1's ext/openssl doesn't compile against it (use of undeclared identifier 'ERR_NUM_ERRORS'). - PHP 8.6: 3.0.0 names extension sources ext-apcu instead of apcu, so the -U apcu:... override is ignored and APCu 5.1.28 is built, which doesn't compile with PHP 8.6. Pin to 2.8.5 with a STATIC_PHP_CLI_VERSION build arg until the build is updated for 3.x. Failing run: https://github.com/rfay/ddev-php-patch-build/actions/runs/46517885055 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Issue
The scheduled run 46517885055 failed for PHP 8.1 and PHP 8.6 (amd64 and arm64), while the run the day before passed. static-php-cli 3.0.0 was released on 2026-11-30, and the build always used the latest release:
ext/openssldoesn't compile against it (use of undeclared identifier 'ERR_NUM_ERRORS').ext-apcuinstead ofapcu, so our-U apcu:...override is ignored and APCu 5.1.28 is downloaded through PIE. 5.1.28 doesn't compile with PHP 8.6 (php_verrornow takes 4 arguments).How This PR Solves The Issue
Pins static-php-cli to
2.8.5with aSTATIC_PHP_CLI_VERSIONbuild arg, instead of resolving the latest release. Moving to 3.x can be done separately; it needs theext-apcuoverride name and an OpenSSL 3.x pin for PHP 8.1, or dropping 8.1.Manual Testing Instructions
Automated Testing Overview
No test changes. The existing matrix (PHP 8.1, 8.4, 8.5 and 8.6) covers both failures.
Release/Deployment Notes
Builds use static-php-cli 2.8.5 until the pin is raised.
🤖 Generated with Claude Code