Skip to content

PHP 8.6 readiness: blocked on upstream extension tags and SPX #23

Open

Description

@sylvesterdamgaard

Deadline-driven prep, tracked from the September 2026 field audit of docker-library/php.

Scope, as of 2026-10-21: this issue is now only about adding PHP 8.6. The PECL→PIE migration (part 1) is solved and shipping; the ZTS question (part 2) is decided. Trixie moved to #52, because it shared nothing with 8.6 and was the reason this issue could never close. See the status comment for today's verified state.

What is left: six extensions whose 8.6 fixes are merged upstream but untagged, and SPX, which does not compile on 8.6 even from master.

1. PECL → PIE (SOLVED - #51)

The pecl binary does not exist in php:8.6-rc images (--with-pear dropped; PECL formally deprecated - docker-library/php#1682, PR#1654). php-base installs redis/apcu/msgpack/imagick/vips/mongodb/opentelemetry/xdebug/pcov via pecl install.

  • Migrate to PIE with upstream's bind-mount pattern: RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin/pie pie install <vendor>/<package>:<version>
  • Name mapping is NOT mechanical (pecl redis = pie phpredis/phpredis etc.) - build the mapping table per extension and verify each against Packagist/PIE before the switch.
  • PECL the network service also has a shelf life for 8.2-8.5 ("will eventually be turned off completely") - migrating everything at once is fine.

2. NTS vs ZTS (DECIDED - 8.6 follows upstream, which is ZTS)

php#1673: 8.6 may flip the default from NTS to ZTS (NTS removal floated for 9.0). If php:8.6-fpm becomes ZTS, extension ABIs and performance shift under our FROM line. Decide explicitly what cbox 8.6 tracks and pin the suffix if defaults flip.

3. 8.6 rollout gotchas already known

  • docker-php-ext-install opcache guard already covers 8.6+ (gated in php-base).
  • 8.6.0beta2 hits the JIT TLS x86 asm compile failure (php#1683) - watch that thread before enabling ZTS/i386 anything.

Activity

  1. added a commit that references this issue on Sep 12, 2026
  2. sylvesterdamgaard commented on Sep 12, 2026

    @sylvesterdamgaard
    ContributorAuthor

    PECL→PIE mapping audit, verified against Packagist 2026-09-12:

    pecl PIE package Latest tag Builds on 8.6 today?
    redis phpredis/phpredis 6.3.0 ❌ fixes merged to develop after 6.3.0; PR #2831 still open. Constraint (>=7.4) permits install, compile fails
    apcu apcu/apcu v5.1.28 ❌ fixes on master since Apr 2026, untagged (PIE release workflow added May 2026 - next tag should be clean)
    msgpack msgpack/msgpack-php v3.0.1 ❌ fix merged Aug 2026 (PR #185), untagged; only ONE version exists on Packagist
    imagick imagick/imagick 3.8.1 ❌ #795 merged but #768 (zval_dtor removal) still open - master not 8.6-clean
    pcov pecl/pcov v1.0.12 (2024!) ❌ worst: fix on unmerged branch (krakjoe/pcov#133), repo near-dormant. Fallback: Xdebug coverage mode in dev tier
    xdebug xdebug/xdebug 3.5.3 (<8.6) / 3.6.0alpha1 (<8.7) ⚠️ alpha only
    mongodb mongodb/mongodb-extension 2.5.2 ✅ (8.6 in CI as allow_failures; 2.5.2 also fixes CVE-2026-84968)
    opentelemetry open-telemetry/ext-opentelemetry 1.4.1 ✅ 8.6 in required matrix
    vips none - pecl vips is dead jcupitt/vips 2.6.1 (pure-PHP FFI, type library) n/a - architectural decision needed (below)

    Install pattern (upstream-recommended, php/pie docs/usage.md):

    RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin/pie \
        pie install vendor/package:version

    PIE needs unzip/git in the build stage, uses the same build deps as pecl did, and auto-runs docker-php-ext-enable (--skip-enable-extension to opt out). Note: Packagist's type=php-ext filter misses php-ext-zend (xdebug) - query packages directly.

    vips decision needed: php-vips 2.x is userland FFI (composer require jcupitt/vips in the app; image ships libvips42 + the ffi extension). Two catches: our zz-ffi.ini sets ffi.enable=preload, which would block php-vips unless the app preloads (needs ffi.enable=true), and PHP 8.3+ wants zend.max_allowed_stack_size=-1 for FFI callbacks off the main thread.

    Status: migration is upstream-blocked on 5 tags. The weekly pie-readiness watch (check-updates.yml) now polls Packagist and comments here the week a blocker tags a release - when all are green, run the migration in one release (all pecl installs at once; PECL-the-service is also being turned off for 8.2-8.5 eventually).

  3. github-actions commented on Sep 14, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  4. sylvesterdamgaard commented on Sep 14, 2026

    @sylvesterdamgaard
    ContributorAuthor

    The 8.6 beta lane is live (8.6.0beta2 shipped out-of-cycle 2026-09-10, so we build against it now): php-base/Dockerfile.php86-beta + .github/workflows/build-php86-beta.yml - weekly pecl-free builds pushing php-base:8.6-rc-bookworm-beta, red runs comment here.

    Verified against 8.6.0beta2 today:

    • ✅ All 15 core extensions (incl. explicit mbstring) compile and load
    • ✅ PIE installs work: mongodb 2.5.2 + open-telemetry 1.4.1 (otel behind the same opt-in gate as production)
    • ✅ Composer 2.10.3 runs on 8.6; our php.ini applies (JIT tracing active)
    • ✅ beta2 is still NTS - the ZTS-default flip (§2) has not happened

    New facts for the migration checklist:

    1. The stable pie binary refuses to RUN on 8.6 ("requires 8.1.||…||8.5.") - the lane uses ghcr.io/php/pie:nightly-bin; swap to :bin when a stable pie release admits 8.6.
    2. 8.6's gd links libwebpdemux/libwebpmux - libwebp7 alone (sufficient on 8.5) leaves gd unloadable. Runtime deps need libwebpdemux2 libwebpmux3.

    Still blocked upstream (unchanged since the audit; the weekly watch pings here as they tag): redis, apcu, msgpack, imagick, pcov.

  5. sylvesterdamgaard commented on Sep 15, 2026

    @sylvesterdamgaard
    ContributorAuthor

    The beta lane now covers all four tiers (slim/standard/chromium/dev) with tolerant attempt-and-report installs: blocked extensions are tried on every weekly build, failures score into a report in the CI job summary, and the report flips to OK the week upstream tags an 8.6 fix.

    Current scoreboard on 8.6.0beta2:

    OK   all 24 php-src extensions across the tiers (incl. soap/xsl/ldap/sysv*)
    OK   mongodb 2.5.2, opentelemetry 1.4.1 (PIE; otel behind the production opt-in gate)
    OK   browser stack: chromium + chromium-driver + baked Playwright carry over unchanged
    FAIL redis / apcu / msgpack / imagick - compile failure in make, as the audit predicted
    FAIL xdebug - pie resolves 3.5.3 stable whose constraint is <8.6 (flips at 3.6.0 stable)
    FAIL pcov - blocked (krakjoe/pcov#133 unmerged)
    FAIL spx v0.4.22 - does NOT compile on 8.6 (NEW finding; source build, needs upstream fix or a version bump at GA)
    

    Tags pushed weekly: php-base:8.6-rc-bookworm{-slim,,-chromium,-dev}-beta. Migration TODO list at GA now also includes: swap pie:nightly-bin -> :bin, SPX 8.6 fix, and libwebpdemux2 libwebpmux3 in every gd-bearing runtime layer.

  6. sylvesterdamgaard commented on Sep 15, 2026

    @sylvesterdamgaard
    ContributorAuthor

    Dev-branch breakthrough: all six blocked extensions build on 8.6 from their development branches (Packagist syncs the branches, so PIE installs them directly - no vcs config needed):

    OK-DEV  redis    phpredis/phpredis:dev-develop      6.3.0RC1
    OK-DEV  apcu     apcu/apcu:dev-master               5.1.29-dev
    OK-DEV  msgpack  msgpack/msgpack-php:dev-master     3.0.1
    OK-DEV  imagick  imagick/imagick:dev-master         (compiles despite #768 being open)
    OK-DEV  xdebug   xdebug/xdebug:3.6.0alpha1          3.6.0alpha1
    OK-DEV  pcov     pecl/pcov:dev-issue-php86a2        1.0.13-dev (the unmerged fix branch)
    FAIL    spx      v0.4.22 AND master                 genuine upstream gap - needs an issue at NoiseByNorthwest/php-spx
    

    The beta images now carry the full production extension set except vips and SPX, all four tiers, zero startup warnings. The -DEV attempts skip themselves the week a released tag starts working, so the lane auto-converges toward released versions - the report shows exactly where we stand every Monday.

    GA-convergence checklist stands at: released tags for the six (watch pings here), SPX upstream fix, vips/FFI architecture decision, pie nightly->stable swap, libwebpdemux2/libwebpmux3 in gd runtime layers.

  7. github-actions commented on Sep 21, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  8. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  9. github-actions commented on Oct 5, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  10. github-actions commented on Oct 12, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  11. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  12. sylvesterdamgaard commented on Oct 21, 2026

    @sylvesterdamgaard
    ContributorAuthor

    Status 2026-10-21 — the PIE blocker is solved; 8.6 itself is still upstream-blocked

    Replacing the 2026-09-12 audit this issue has been carrying.

    1. PECL → PIE: done

    #51 migrates every extension in php-base from pecl install to PIE, for the versions we ship today (8.2–8.5). It is independent of 8.6 and lands regardless, because the PECL network service is being retired either way.

    Package names verified against Packagist (they are not mechanical): phpredis/phpredis, apcu/apcu, msgpack/msgpack-php, imagick/imagick, mongodb/mongodb-extension, open-telemetry/ext-opentelemetry, xdebug/xdebug, pecl/pcov.

    vips is removed, and that is the one genuinely irreversible decision here: it has no PIE package under any name, is PECL-only, and its upstream repo has been untouched since 2024-10 with its newest git tag three releases behind what PECL serves. It could not survive the retirement by waiting, migrating, or building from a tag.

    2. ZTS vs NTS: decided — 8.6 follows upstream, which is ZTS

    This issue listed it as a watch item. It has happened: php:8.6-rc-fpm-bookworm is ZTS, verified directly rather than inferred —

    $ docker run --rm php:8.6-rc-cli-bookworm php -r 'echo PHP_VERSION, " ZTS=", (int)ZEND_THREAD_SAFE;'
    8.6.0RC3 ZTS=1
    

    There is also no -nts tag anywhere in the php repository — a tag search for nts returns zero results across all versions — so pinning an NTS suffix is not an available option even if we wanted one. (8.6-rc-zts-bookworm still exists as a separate tag, now redundant with the default.)

    Decision: cbox 8.6 tracks upstream's default, ZTS. Taken on the grounds that 8.6 is still pre-release, so this is the cheapest moment to absorb the change rather than deferring it to a GA migration. Consequences to plan for when 8.6 is added: the extension ABI is the TS build, and every performance number in docs/reference/benchmarks.md was measured NTS, so they do not transfer.

    3. What still blocks adding 8.6

    From today's beta-lane run against 8.6.0RC3 (the report is baked into each 8.6-rc-bookworm-*-beta image at /usr/local/etc/php86-report.txt):

    extension released on 8.6 dev branch
    mongodb 2.5.5 ✅ —
    opentelemetry 1.4.2 ✅ —
    cbox_telemetry (source) ✅ —
    redis ❌ ✅ dev-develop (6.3.0RC1)
    apcu ❌ ✅ dev-master
    msgpack ❌ ✅ dev-master
    imagick ❌ ✅ dev-master
    xdebug ❌ (3.5.3 requires <8.6) ✅ 3.6.0alpha1
    pcov ❌ ✅ dev-issue-php86a2
    spx ❌ ❌ fails from master too

    So: six extensions have their 8.6 fix merged but untagged — nothing to do but wait, which the weekly PIE readiness watch already polls for. SPX is the one real unknown: it fails to compile on 8.6 from master, not just from its pinned tag, and no upstream fix is visible. It is dev-tier only, so one option when the other six land is to ship 8.6 without SPX rather than hold the whole version for it.

    vips no longer appears on this list at all, because it is gone — that is one fewer blocker than the September audit counted.

    4. Trixie: still unwritten

    Nothing has moved on it. The weekly suite watch alerts if bookworm stops advancing, which is the thing that would force the issue. The plan this issue calls for — flip all layers in one release, benchmark bookworm vs trixie first, document the xz landlock minimum host runtime — has not been written.

    Worth splitting into its own issue: it shares nothing with 8.6 except being a future migration, and keeping it here is what stops this issue from ever closing.

    Suggested shape going forward

  13. changed the title [-]PHP 8.6 readiness: PIE migration, ZTS decision, trixie plan[/-] [+]PHP 8.6 readiness: blocked on upstream extension tags and SPX[/+] on Oct 21, 2026
  14. added a commit that references this issue on Oct 21, 2026
  15. 8 remaining items

  16. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  17. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  18. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  19. github-actions commented on Nov 16, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  20. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  21. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  22. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then update the known-blocked pins in check-updates.yml or start the PECL->PIE migration if all blockers are clear.

  23. github-actions commented on Nov 20, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

  24. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

  25. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

  26. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - phpredis/phpredis:6.4.0RC1(was:6.3.0) xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

  27. github-actions commented on Nov 24, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - phpredis/phpredis:6.4.0RC1(was:6.3.0) xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

  28. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - phpredis/phpredis:6.4.0RC1(was:6.3.0) xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

  29. github-actions commented on Nov 26, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - phpredis/phpredis:6.4.0RC1(was:6.3.0) xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

  30. github-actions commented on Nov 27, 2026

    @github-actions
    Contributor

    PIE readiness watch: new tags since the audit - phpredis/phpredis:6.4.0RC1(was:6.3.0) xdebug/xdebug:3.6.0alpha1(was:3.5.3). Verify PHP 8.6 buildability (constraints can lie: phpredis 6.3.0 allowed >=7.4 but failed to compile), then replace that package's commit pin in versions.json extension_overrides.8.6 with the release and update the known-blocked list in check-updates.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions