Subscribe
0%
Illustration for: PHP 8.6 is out with partial function application, plus same-day security releases for 8.2–8.5. What to upgrade

PHP 8.6 is out with partial function application, plus same-day security releases for 8.2–8.5. What to upgrade

PHP 8.6.0 shipped on November 19 with partial function application, a nanosecond Duration class and a native I/O polling API. The same day, PHP put out security releases 8.5.13, 8.4.28, 8.3.37 and 8.2.36, which you should install first. The 8.6 jump also changes session defaults and deprecates a long list of functions.

Listen to this article0:00 / 5:45

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 a Closure:
$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, without stream_select()'s scalability limits.
  • clamp(), for example clamp(-10, 0, 100) returns 0, plus a SortDirection enum.
  • 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, and mysqli::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_mode and session.cookie_httponly are now on, and session.cookie_samesite defaults to Lax. Apps that rely on cross-site session cookies, or that accept arbitrary session IDs, need testing.
  • Custom session handlers without create_sid() and validateId() are deprecated.
  • return inside finally is 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 to array_walk() and http_build_query().
  • trim() and related functions now strip form feeds by default. fclose(), file_put_contents() and copy() return false when a flush or close fails. More functions throw ValueError on invalid input.

ShiftDelete.Net reports the same release lineup and feature set.

What to do

  1. 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.
  2. If you're on 8.2: plan a move now. PHP says 8.2 gets no security fixes after December 31, 2026.
  3. 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

  1. PHP.net — PHP 8.6.0 Release Announcement php.net
  2. PHP.net — PHP 8.6 release page (features and deprecations) php.net
  3. PHP.net — News (Nov 19 releases, Oct 23 advisory) php.net
  4. PHP.net — PHP 8 ChangeLog php.net
  5. PHP Foundation Discourse — [ANNOUNCE] PHP 8.6.0 Released discourse.thephp.foundation
  6. ShiftDelete.Net — PHP 8.6 released: partial function application and more shiftdelete.net

#PHP#PHP 8.6#open source#web development#security releases#CVE-2026-115560