AI & Tech

PHP 8.6: Things are gonna get a lot more strict around here

Lucky for PHP, and for the rest of us, core developer Jörg Sowa called out these lax settings in June, when he posted a proposal to set more security-friendly defaults.

✦ Extractive summary — built from the sources' own reporting•From 1 source•2 min read•Updated November 20, 2026, 11:28 PM UTC
Key points
  • The PHP core development community, along with the PHP Foundation, responded with a coordinated release of patched versions of PHP (8.5.13, 8.4.28, 8.3.37, 8.2.36 and the new 8.6) that closed seven critical remote code execution (RCE) flaws in one sweep.
  • Furthermore, PHP will now, by default, add the HttpOnly flag to its session Set-Cookie header, blocking client-side JavaScript from reading the session ID, which could otherwise be stolen to masquerade as the user.
  • The new edition also gets a native polling API, which will be handy for event-driven networking; a stopwatch-like Duration class that can track elapsed time across more than 250 years; and a clamp() function to ensure a given value stays within an acceptable range.

Continuing in this spirit of “if you see something, say something,” a number of other PHP functions will also no longer remain silent when things go awry.

They won’t stop remote code execution hacks, though they will make it a lot more difficult for attackers to gain entry.

Additional details
  • For those who missed it: a swarm of unearthed vulnerabilities has plagued PHP since October, allowing unauthenticated attackers to crash PHP workers or execute arbitrary code on the server.
  • For Strict Mode, PHP will no longer accept uninitialized session IDs that it didn’t create itself.
  • The PHP engine will be a lot stricter when it encounters strings with null values (“\0”).
  • On Thursday, PHP version 8.6 was released on its usual yearly schedule, popping up as if the web scripting language hadn’t been under intense scrutiny this past month.
  • In addition to patching specific exploitable holes in the PHP engine, the new version of PHP also tamps down some of PHP’s historically liberal configuration settings.

How this summary was made: extractive summary — built from the sources' own reporting. It is drawn only from the reporting of the sources listed below — read the originals for full detail. How we summarize →

Advertisement

Every article behind this summary — 1 article from 1 outlet