PHP 8.6 has been released. The new version adds partial function application, a Time\Duration class, a polling API for event loops and a clamp() function. PHP 8.6 also changes defaults that existing apps could trip over. Sessions now start with session.use_strict_mode and session.cookie_httponly tur
Briefing
Written from the coverage below · deepseek-v4.1-flash
PHP 8.6 was released, adding partial function application, a Time\Duration class, an event-loop polling API and clamp(). Session defaults changed: use_strict_mode and cookie_httponly are now on and cookie_samesite is Lax; custom session handlers lacking create_sid() and validateId() are deprecated.
Why it mattersThe new session defaults harden authentication cookies but can break custom session handlers and logins that relied on previous behavior. Verify compatibility before rolling out.
ActionBefore upgrading, review custom session handlers for create_sid() and validateId() and test login flows against the new strict-mode, HttpOnly and SameSite=Lax defaults.
Coverage
1 article