The PHP Group released PHP 8.6.0 on 19 November 2026 and lists it as the current stable version. Help Net Security reported new features including partial function application, a Time\Duration class, a clamp() function and a polling API for event loops. Updated 8.5, 8.4, 8.3 and 8.2 builds carry the same date.
Help Net Security also reported changes that can trip up existing apps. New sessions begin with strict mode and HTTP-only cookies on, and SameSite set to Lax. Custom handlers that lack create_sid() or validateId() are deprecated. The functions fclose(), file_put_contents() and copy() now return false if the final flush or close fails, which older versions ignored. Many other functions throw a ValueError on bad ranges, flags or NUL bytes. The sources give no removal date for the deprecated items.
The upgrade turns hidden failures into visible ones. A write can look finished while its last step fails, and old code that never checked would call it saved. As general background, strict mode rejects session IDs the server never issued, and HTTP-only cookies stay out of page scripts. Lax holds back cookies on many cross-site requests, so single sign-on redirects deserve testing. Leaders can ask which apps check write results.