PHP 8.6.0 is generally available. The PHP project announced the release on November 19, and the PHP Foundation's announce list carried it the same afternoon. The headline feature is partial function application, which lets you pre-fill some of a function's arguments and get a closure back. Alongside the new minor version, php.net shipped security releases for every supported branch: 8.5.13, 8.4.28, 8.3.37 and 8.2.36.
Why it matters: most PHP sites won't move to 8.6 this week, but almost all of them should take the security releases now. The October PHP2Shell bugs showed how quickly PHP core flaws get exploited, and the session-related fix PHP promised in October is part of this batch.
Patch first: the November 19 security releases
PHP's news page lists all four as security releases. On November 18, php.net said the highest severity in the batch was CRITICAL, and that the critical issues "require either non-default configuration or uncommon setups."
| Branch | Fixed release (Nov 19) | Notes |
|---|---|---|
| 8.5 | 8.5.13 | Security release |
| 8.4 | 8.4.28 | Security release |
| 8.3 | 8.3.37 | Security release |
| 8.2 | 8.2.36 | Security release; 8.2 reaches end of life Dec 31, 2026 |
| 8.6 | 8.6.0 | New GA; includes the same fixes |
The 8.6.0 ChangeLog lists a long run of CVEs. Among them are use-after-free bugs in Core and Date that PHP says can lead to remote code execution, an out-of-bounds read/write in CGI's PATH_INFO handling, and three FPM issues: a local privilege escalation, request smuggling and a status-page XSS. There is also a Phar signature-verification bypass. We could not confirm from the pages we read exactly which CVEs apply to each older branch, so check the ChangeLog for your version.
One you may already know: CVE-2026-115560. On October 23, PHP warned of a session flaw that needs a specific setup: session.serialize_handler set to php_binary or php_serialize in config, then switched to php with ini_set() before session_start(), with upload progress enabled. PHP advised setting session.upload_progress.enabled=0 "until the next regular bugfix release" and said a full advisory would come with that release. That release is this batch. If you turned upload progress off as a stopgap, install the update before you turn it back on.
What's new in 8.6
Per the 8.6 release page:
- Partial function application. Use
?and...placeholders to supply some arguments in advance. The result is aClosure:
$supportsPfa = array_filter($versions, version_compare(?, '8.6', '>='));
\Time\Duration, an elapsed-time class that PHP says covers more than 250 years with nanosecond precision.Io\Poll, an I/O multiplexing API built on epoll, kqueue and other native mechanisms, withoutstream_select()'s scalability limits.clamp(), for exampleclamp(-10, 0, 100)returns0, plus aSortDirectionenum.- Default values for readonly properties, including in readonly classes.
- Also:
#[\Override]on class constants and enum cases, URI builder classes, post-quantum KEMs in Sodium (X-Wing, ML-KEM-768), TLS 1.3 0-RTT early data, andmysqli::quote_string().
On performance, PHP lists array_map() calls with first-class callable or partial callbacks compiled into loops, faster printf(), cached stateless closures and faster JSON encoding. It gives no benchmark numbers.
What can break
The release page has a long deprecation and backward-compatibility list. The items most likely to affect existing apps:
- Session defaults change.
session.use_strict_modeandsession.cookie_httponlyare now on, andsession.cookie_samesitedefaults toLax. Apps that rely on cross-site session cookies, or that accept arbitrary session IDs, need testing. - Custom session handlers without
create_sid()andvalidateId()are deprecated. returninsidefinallyis deprecated. So are the mbstring regex functions (mb_ereg(),mb_split(), …),spl_object_hash(),is_double()/is_long()/is_integer()/doubleval(),strcoll()and passing objects where arrays are expected toarray_walk()andhttp_build_query().trim()and related functions now strip form feeds by default.fclose(),file_put_contents()andcopy()returnfalsewhen a flush or close fails. More functions throwValueErroron invalid input.
ShiftDelete.Net reports the same release lineup and feature set.
What to do
- Today: update to 8.5.13, 8.4.28, 8.3.37 or 8.2.36, or your distro's backport, and restart all PHP-FPM workers.
- If you're on 8.2: plan a move now. PHP says 8.2 gets no security fixes after December 31, 2026.
- For 8.6: run your test suite with deprecations enabled, and check session behaviour and cookie SameSite settings in particular. Then follow php.net's migration guide before switching production.
Sources
- PHP.net — PHP 8.6.0 Release Announcement php.net
- PHP.net — PHP 8.6 release page (features and deprecations) php.net
- PHP.net — News (Nov 19 releases, Oct 23 advisory) php.net
- PHP.net — PHP 8 ChangeLog php.net
- PHP Foundation Discourse — [ANNOUNCE] PHP 8.6.0 Released discourse.thephp.foundation
- ShiftDelete.Net — PHP 8.6 released: partial function application and more shiftdelete.net