Repository navigation
Conversation
There is no upstream decision to drop NTS, so 8.6 goes back to the 8.2-8.5 layout. NTS variants get --enable-pic back (as before docker-library#1692), while the zts variant keeps the docker-library#1692 behavior. --enable-embed for cli on Alpine 8.6+ is kept since it is already published. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
So does upgrading from PHP 8.5 to PHP 8.6. The introduction of new symbols to the standard library is technically also a breaking change.
I consider making available the There was a 2-month pre-release period where this change was active and feedback could be provided (including a pinned issue). It's in a stable release now. This PR is extremely disruptive to folks that did everything right by testing the pre-releases, preparing for the change and who rightfully expect to be able to rely on behavior remaining unchanged within a given branch (i.e. when using |
Yes, and I, for example, actively fixed all breaking changes in PHP 8.6 in the SAPI layer for our SAPI (not blaming anyone) to support PHP8.6 on the release date. And I actively analyzed almost all commits to php-src, but not to the official Dockerfiles (looks like I also need to analyze commits here) from the Docker (probably my mistake).
This PR brings everything back as it should be, reverting the minority (respectfully) to decide for the majority. EDIT: and results you may already see in php-src: php/php-src#25499 for even experienced PHP guys. |
Refs #1719, #1686, #1673, #1689
Note
For those coming from #1719: please keep comments here to reviewing the change itself. If you've hit problems caused by the 8.6 images switching to ZTS, or have a point that hasn't been raised yet, please share it in #1719.
This restores the pre-#1686 layout for 8.6: NTS in
cli/fpm/apache, and ZTS as the-ztsvariant, same as 8.2–8.5.Changes
--enable-ztsand--disable-zend-signalsare again limited to theztsvariant.--enable-picback, as they had before don't explicitly --enable-pic for ZTS #1692. Theztsvariant keeps the don't explicitly --enable-pic for ZTS #1692 behavior (no forced PIC, so local-exec TLS still works).8.6/*/ztsvariants are back inversions.sh/versions.json.--enable-embedforclion Alpine 8.6+ is intentionally kept. It's already published, andlibphpis useful for embedding NTS PHP too, not only for threaded SAPIs../apply-templates.sh, no diff).Why
latest,8,cli,fpm,apache, …) without any notice, and it changes runtime behavior. Besides the thread-safety mode itself, the images are built with--disable-zend-signals, and ZTS on Linux enables the zend max execution timers, somax_execution_time/set_time_limit()counts wall-clock time instead of CPU time (repro in Reconsider ZTS-only builds for 8.6 until upstream PHP has actually decided #1719, a production case in max_execution_time counts wall time on ZTS builds, CPU time elsewhere php/php-src#25499).-ntsvariant alone wouldn't fix that, since most users use the default tags.Consequences
Downstream images that already switched to
php:8.6-clias their ZTS base (e.g. FrankenPHP'sdocker-bake.hcl) would need to use-ztsagain for 8.6.Testing
Tested locally (
8.6/trixie/cliand8.6/trixie/zts):/usr/local/lib/libphp.sois present in both images.Future scope
Not part of this PR: to make a future move to ZTS smoother, if upstream ever decides on it, the images could add
-ntsaliases for the NTS variants starting with 8.6 (8.6-cli-nts,8.6-fpm-nts,8.6-apache-nts, …). They would point to the same images, so no extra builds. Users could then state their thread-safety requirement explicitly (-ntsor-zts), and a later change of the default wouldn't silently change behavior for them. I'm happy to send a separate PR if that sounds reasonable.