From b3513234426fe697dbc91fcddec3cc90d54b8e60 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Aug 2026 04:22:14 +0000 Subject: [PATCH 1/3] Update unstable PHP tag to 8.6.0alpha3 Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_012KziZyXrwQuJyZeFPm1aQ6 --- unstable-tag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unstable-tag b/unstable-tag index 8a5b208..fb100c5 100644 --- a/unstable-tag +++ b/unstable-tag @@ -1 +1 @@ -8.6.0alpha2 +8.6.0alpha3 From 420e61884fcdc85950d954f55641f9023b98f97a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Aug 2026 04:49:06 +0000 Subject: [PATCH 2/3] Surface real apcu build error on PHP 8.6 CI pie install currently fails during the apcu/apcu build on the 8.6.0alpha3 base image with only "Misuse of shell builtins" and a pointer to a temp file that lives inside the already-torn-down build container, so the actual compiler/make error never reaches the CI log. Build apcu with -v so pie streams the real output live instead of buffering it. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_012KziZyXrwQuJyZeFPm1aQ6 --- php-install.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/php-install.sh b/php-install.sh index 4046a1c..894ac09 100644 --- a/php-install.sh +++ b/php-install.sh @@ -158,15 +158,29 @@ case $PHP_VERSION in esac case $PHP_VERSION in - 8.1*|8.2*|8.3*|8.4*|8.5*|8.6*) + 8.6*) + # todo: -v surfaces the real compiler/make error in the CI log; pie + # otherwise buffers build output and, on failure, dumps it to a + # temp file inside the (already-gone) build container instead. + pie install -v apcu/apcu + ;; + 8.1*|8.2*|8.3*|8.4*|8.5*) pie install apcu/apcu + ;; + *) + yes | pecl install apcu + ;; +esac + +case $PHP_VERSION in + 8.1*|8.2*|8.3*|8.4*|8.5*|8.6*) pie install rdkafka/rdkafka pie install pecl/yaml pie install pecl/uuid pie install msgpack/msgpack-php ;; *) - yes | pecl install apcu rdkafka yaml uuid msgpack + yes | pecl install rdkafka yaml uuid msgpack ;; esac From eb8fa65f33e88cb13ad51b80a9770e5b8ce273f5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Aug 2026 04:52:32 +0000 Subject: [PATCH 3/3] Build apcu from source on PHP 8.6 apcu's latest tagged release (what pie/pecl install) still calls php_verror() with the old 5-argument signature; PHP 8.6.0alpha3 dropped the "params" argument, breaking the build. That's already fixed on apcu's default branch (unreleased), so build 8.6 from a fresh clone instead, matching the existing igbinary/mailparse/redis/imagick workarounds for this PHP version. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_012KziZyXrwQuJyZeFPm1aQ6 --- php-install.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/php-install.sh b/php-install.sh index 894ac09..cde3181 100644 --- a/php-install.sh +++ b/php-install.sh @@ -159,10 +159,17 @@ esac case $PHP_VERSION in 8.6*) - # todo: -v surfaces the real compiler/make error in the CI log; pie - # otherwise buffers build output and, on failure, dumps it to a - # temp file inside the (already-gone) build container instead. - pie install -v apcu/apcu + # apcu's latest tagged release (pie/pecl install this) predates the + # upstream fix for PHP 8.6's php_verror() signature change, so build + # from the default branch instead, same as the other 8.6 workarounds + # below. + php -m | grep -q '^apcu$' || ( + git clone --depth=1 https://github.com/krakjoe/apcu.git /usr/src/apcu && + cd /usr/src/apcu && + phpize && ./configure --enable-apcu && make -j"$(nproc)" && make install && + echo "extension=apcu.so" > /usr/local/etc/php/conf.d/apcu.ini + ) + rm -rf /usr/src/apcu ;; 8.1*|8.2*|8.3*|8.4*|8.5*) pie install apcu/apcu @@ -386,7 +393,7 @@ docker-php-ext-install gmp ldap xsl mysqli calendar gd pdo_mysql pdo_pgsql zip b case $PHP_VERSION in 8.1*|8.2*|8.3*|8.4*|8.5*|8.6*) - echo "rdkafka and apcu were already enabled by pie for PHP $PHP_VERSION" + echo "rdkafka was already enabled by pie, and apcu by pie or its own install step, for PHP $PHP_VERSION" ;; *) docker-php-ext-enable rdkafka apcu