The new version addresses several critical bugs highlighted by users, including significant fixes for OSS-Fuzz issue #447521098, which caused fatal errors during sccp shift evaluations, and bug GH-20002, which affected BSD builds with Memory Sanitizer (MSAN). Notably, the previously planned complete deprecation of the __sleep() and __wakeup() functions has been altered to a soft-deprecation, allowing developers more time to adjust.
Improvements extend to the Command-Line Interface (CLI) server, which will no longer generate unnecessary "Failed to poll event" error logs due to EAGAIN when PHP_CLI_SERVER_WORKERS is enabled. Enhancements to the BcMath module resolve potential undefined behavior when handling the power of 0 for BcMath numbers.
The Opcache feature has been overhauled to address issues that could cause segmentation faults or double-frees under certain warning conditions. This includes handling NaN (Not-a-Number) to boolean conversions more effectively and mitigating persistent script warnings during file persistence. The SOAP module has also seen crucial fixes, eliminating SIGSEGV (Signal 11) errors caused by an uninitialized variable.
Other improvements include rectifications in array splicing when violating copy-on-write flags and addressing URI parsing issues, particularly concerning relative URLs with query or fragment components. The normalization of paths starting with two slashes has also been corrected.
Overall, these enhancements reflect the PHP development team's commitment to improving the platform's reliability, security, and performance. Developers interested in exploring the features of this release candidate can find more information and download links on the official GitHub page for PHP 8.5.0.
For those keen to test the new features, you can access the release candidate at:
- [PHP 8.5.0 RC2 Release](https://github.com/php/php-src/releases/tag/php-8.5.0RC2
PHP 8.5.0 RC2 released
Volker Dusch has announced the release of the second release candidate for PHP 8.5.0, a highly popular scripting language particularly well-suited for web development. This upcoming version boasts various enhancements, including fixes for critical bugs and issues reported by users, such as OSS-Fuzz issue #447521098 and bug GH-20002 affecting BSD builds with MSAN. The release also includes significant improvements to the Opcache feature, SOAP module, and URI handling, ensuring improved reliability, security, and performance.