PHP 8.6.0 Alpha 2 Released: Native Polling API, Stricter Sessions, and Late 2026 Roadmap
PHP 8.6.0 Alpha 2 is delivering a native I/O polling API, a global clamp() function, and stricter default session security settings. The release also modernizes error handling by replacing traditional warnings with consistent ValueError and TypeError exceptions across core functions. Meanwhile, trim() now strips form feed characters, and the deprecated Mbregex extension pushes developers toward preg_*() alternatives. With alpha releases sprinting every two weeks, the PHP team targets a stable release by late 2026, giving developers plenty of time to adapt their stacks before the final drop.
PHP 8.6.0 Alpha 2 Released: Native Polling API, Stricter Sessions, and Late 2026 Roadmap
PHP 8.6.0 Alpha 2 has been released, introducing a native I/O polling API, a global clamp() function, and stricter default session security settings. The update enhances error handling by replacing traditional warnings with consistent ValueError and TypeError exceptions while also modernizing functions like trim() and deprecating the Mbregex extension. Performance optimizations have been made, particularly for printf() calls and multi-threaded workloads, and there are important backward compatibility shifts that require legacy setups to update their session configurations. With a target for a stable release by late 2026, developers are encouraged to adapt their stacks and prepare for upcoming changes
