I tested five areas of PHP 8.6 and sent the results to the PHP project. One documentation change has been merged. The rest are open requests for review, and none have been released.
PHP 8.6 arrived on 19 November 2026. Alongside the upgrade checks in my PHP 8.6 upgrade guide, I asked a different question: where does the release, or the code around it, still behave in ways a site owner would not expect? I picked five areas, reproduced what I could, and reported the results in the format the maintainers ask for.
This is the practical follow-up to my piece on contributing to WordPress. The method is the same: reproduce, test, keep the change small, and be honest about what you have and have not shown.
The short version
| Area | What I found | Where it stands |
|---|---|---|
| WebP image metadata | exif_read_data() calls a valid WebP file invalid when it has no EXIF chunk | Fix submitted as php-src PR #25679, open |
| OPcache and PHP-FPM restarts | An internal counter grew on every cache restart | Tested and reported on PR #24644, open |
| PHP-FPM status page | Active process counts could far exceed the pool limit with keep-alive connections | Tested and reported on PR #25620, open |
| File streams | A failed flush on close can go unreported | Tested and reported on PR #25543, open |
| ZipArchive in memory | No engine bug, but the new methods had no manual pages | Documentation merged into the PHP manual on 24 November |
1. A valid WebP file reported as invalid
exif_read_data() reads camera and photo metadata, and WordPress and many plugins use it when you upload an image. For a WebP file with no EXIF data at all, PHP warned that the file was invalid, even though the file was fine.
The cause was in how PHP walks through the chunks inside a WebP file. When it reached the end having found every chunk well formed, it answered "not found" in the same way it does for a damaged file. I changed it so a clean file with no metadata is treated as exactly that, and added a test with several chunk layouts, including padding. The details are in issue #25678.
I found the same pattern for HEIF images, the format many phones use. I did not write a fix for that one. A proper fix needs the parser to tell "absent" from "malformed", and that is a design decision for the maintainers, so I described it on the issue and left it there.
Why it matters for a site: a warning on every upload of a valid image fills logs, and it can break uploads where warnings are treated as errors.
2. OPcache and a counter that never stopped growing
OPcache keeps compiled PHP in shared memory. When it restarts, for example after a deployment or when it runs out of space, each PHP-FPM worker is meant to start from a clean slate.
In my test, one internal map-pointer counter kept growing with every restart. With two workers, 2,000 classes and 40 restarts, it went from 6,272 to 246,272. With the proposed fix it stayed at 6,272. I ran the OPcache and FPM test suites with and without the change. The results matched, apart from a new regression test that failed without the fix and passed with it.
The limits matter here. The proposed fix was written for PHP 8.4, so I ported the part that matters to 8.6 in order to test it. I also tried a second approach, and I reported the numbers for both. The choice belongs to the people who maintain OPcache.
Why it matters for a site: memory that creeps up in long-running workers after each reload is the classic "it needs a restart every few days" symptom.
3. A status page that disagreed with reality
PHP-FPM can publish a status page showing idle and active workers. With keep-alive connections, where one connection carries several requests, the active count could climb well past the number of workers the pool is allowed to have.
My synthetic load test used up to 150 workers. Without the fix the count peaked at roughly 1,175 to 1,450. With the proposed change it never went above the pool maximum, and it drained back to all idle when the load stopped. I tested static, dynamic and on-demand pools. This was a synthetic client, not 1,500 workers behind nginx or Apache, and I said so in my report.
Why it matters for a site: if you alert on active processes, a wrong number gives you false alarms, or hides a real one.
4. A flush that fails when the file is closed
When you write to a stream, data can sit in a buffer until it is flushed or the file is closed. If that final flush fails, for example because the disk is full, your code needs to know. I tested a proposed change for user-defined stream wrappers and added a review comment about calling fclose() after fflush(). The author has since rebased the change and re-run the test suites.
5. ZipArchive in memory, and a documentation gap
PHP 8.6 adds ZipArchive::openString() and ZipArchive::closeString(), which let you build or read a ZIP archive without touching the disk. I tested creating, reading back, failure handling and empty archives against libzip, and found no engine defect.
What was missing was documentation. I wrote the two manual pages, with an example that builds an archive in memory and reads it back. A documentation maintainer reviewed them, suggested a few improvements, which I applied, and merged the change on 24 November. It was my first merged contribution to PHP.
One area where I found nothing
I also tested how json_last_error_msg() reports error locations, across 60 combinations of input and settings, checking each against an independent calculation. Everything matched. That is a useful result too, and it is worth writing down so nobody repeats the work.
What I did not test
- My builds were reduced ones with only the extensions I needed, not the full test suites.
- I did not test Windows, thread-safe builds, JIT or ARM64 locally. The project's own continuous integration covers some of these, and it passed on my pull requests.
- Apart from the documentation, none of the open items has had a maintainer review yet.
How I worked, and the use of an AI assistant
I used an AI assistant to help build test harnesses, run the comparisons and draft write-ups. I checked what it did and what it claimed, and where the project asks for it, I disclosed the assistance on GitHub. The numbers above come from commands I can repeat and revisions I can name.
What you can take from this
- Reproduce first. A report someone else can run in a minute is worth more than a theory.
- Make the test fail for the right reason. Then show it passing with the change.
- Keep the change small, and say what you did not do. The HEIF note is an example.
- Report negative results. "I checked, and it is fine" saves someone a day.
- Check your own stack. Your host or your own tests should confirm any of this on your setup before you act on it.
If you run WordPress on PHP 8.6, my WordPress compatibility checks cover the site-level side, and why keeping PHP up to date matters covers the wider picture. I will add the outcome of each pull request to this page as it is reviewed.