The PHP project released PHP 8.6 on 19 November 2026, a feature update that brings partial function application, a new time duration type and a native polling API to the language that powers a large share of the web, including WordPress. According to Phoronix, the release landed on the same day as security updates for the PHP 8.2, 8.3, 8.4 and 8.5 branches. The official release page describes 8.6 as a major update of the language.

Partial function application

The headline feature lets developers pre-fill some of a function’s arguments and leave the rest as question mark placeholders. According to the PHP release page, doing so returns a closure that runs once the remaining arguments are supplied. Help Net Security notes the same behaviour in its overview. The idea is to make it easier to build reusable callbacks without writing small wrapper functions by hand.

Duration, clamp and SortDirection

PHP 8.6 adds a Time Duration class for stopwatch-style elapsed time. The release page says it offers nanosecond precision across more than 250 years and has no link to clock time or timezones, which makes it suited to timeouts and benchmarks. A new clamp function limits a value to a range and works with any comparable value, including Duration objects. A SortDirection enum gives libraries a shared, type-safe way to express sort order, and readonly properties can now declare default values.

A native polling API

The new Io Poll API monitors many streams at once using each platform’s native mechanism, such as epoll, kqueue, event ports or WSAPoll, without the limits of the older stream_select function. Help Net Security says it is intended as a foundation for event loop libraries like ReactPHP and AMPHP. Streams can also be configured to throw a StreamException carrying structured error details instead of failing silently.

Security and other additions

The release page lists post-quantum key encapsulation in the Sodium extension, using X-Wing and ML-KEM-768, along with TLS session resumption, external pre-shared keys and 0-RTT early data for TLS streams. Other additions include parameter doc comments available through reflection, new ReflectionProperty checks for readability and writability, URI builder classes, mysqli quote_string, and performance work on array_map, printf, closure caching and JSON encoding.

Changed defaults to watch

Some changes may affect existing applications. Session defaults now enable strict mode and HttpOnly cookies, and set the SameSite cookie attribute to Lax. Help Net Security recommends that apps relying on the old defaults test their login flows before upgrading. The trim family of functions now strips form feed characters by default, functions such as fclose and file_put_contents return false when flushing or closing fails, and many functions throw a ValueError for out-of-range values, invalid flags or strings containing NUL bytes.

Deprecations

The mbstring regex functions, including mb_ereg and mb_split, are deprecated because the Oniguruma library they rely on is no longer maintained; Help Net Security says PCRE with the u modifier is the recommended replacement. Aliases such as is_double, is_long, is_integer and doubleval are deprecated in favour of their standard names, spl_object_hash gives way to spl_object_id, and using return inside a finally block now triggers a deprecation notice. Neither source we reviewed listed end-of-life dates, which are published separately on the PHP website.

Sources:

Motorola Razr 60 Ultra fully leaks ahead of expected launch soonpc

Motorola Razr 60 Ultra fully leaks ahead of expected launch soon

permusŞubat 13, 2025
Altice France rejects €17 billion SFR offer from Bouygues, Orange, and Iliadpc

Altice France rejects €17 billion SFR offer from Bouygues, Orange, and Iliad

permusEkim 19, 2025
Cyberattack on Jaguar Land Rover Deals $2.5 Billion Hit to UK Economy, Independent Report Showspc

Cyberattack on Jaguar Land Rover Deals $2.5 Billion Hit to UK Economy, Independent Report Shows

permusEkim 27, 2025