# 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.

Published Nov 19, 2026 by TechMeasured Staff · Repos · Canonical: https://techmeasured.com/repos/php-8-6-0-released-partial-function-application-security-releases-8-5-13-what-to-upgrade

**PHP 8.6.0 is generally available.** The PHP project [announced](https://www.php.net/releases/8_6_0.php) the release on November 19, and the [PHP Foundation's announce list](https://discourse.thephp.foundation/t/announce-php-8-6-0-released/6470) 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](https://www.php.net/index.php) 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](https://www.php.net/ChangeLog-8.php) 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](https://www.php.net/releases/8.6/en.php):

- **Partial function application.** Use `?` and `...` placeholders to supply some arguments in advance. The result is a `Closure`:

```php
$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](https://shiftdelete.net/en/php-8-6-release) 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](https://www.php.net/releases/8_6_0.php)
2. [PHP.net — PHP 8.6 release page (features and deprecations)](https://www.php.net/releases/8.6/en.php)
3. [PHP.net — News (Nov 19 releases, Oct 23 advisory)](https://www.php.net/index.php)
4. [PHP.net — PHP 8 ChangeLog](https://www.php.net/ChangeLog-8.php)
5. [PHP Foundation Discourse — [ANNOUNCE] PHP 8.6.0 Released](https://discourse.thephp.foundation/t/announce-php-8-6-0-released/6470)
6. [ShiftDelete.Net — PHP 8.6 released: partial function application and more](https://shiftdelete.net/en/php-8-6-release)
