Skip to content

fix: pin static-php-cli to 2.8.5, 3.0.0 breaks the PHP 8.1 and 8.6 builds - #19

Merged
rfay merged 1 commit into
mainfrom
20261130_rfay_pin_static_php_cli
Nov 30, 2026
Merged

rfay merged 1 commit into
mainfrom
20261130_rfay_pin_static_php_cli

Conversation

@rfay

@rfay rfay commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

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:

  • 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 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_verror now takes 4 arguments).

How This PR Solves The Issue

Pins static-php-cli to 2.8.5 with a STATIC_PHP_CLI_VERSION build arg, instead of resolving the latest release. Moving to 3.x can be done separately; it needs the ext-apcu override name and an OpenSSL 3.x pin for PHP 8.1, or dropping 8.1.

Manual Testing Instructions

ddev add-on get https://github.com/rfay/ddev-php-patch-build/tarball/refs/pull/19/head
ddev restart
ddev php -v

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

…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>
@rfay
rfay merged commit 0161a33 into main Nov 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant