Notably, the release resolves a significant issue involving parent hook calls with named arguments, corrects a stale pointer problem, and ensures that deprecation warnings for null offsets are accurately issued during write operations. Additionally, final promoted properties now automatically receive visibility assignments when not explicitly defined.
Improvements to OPCache have tackled a critical bug linked to potential heap buffer overflows in the just-in-time compiler, although a known issue with file cache reuse in different environments remains partially unresolved. The PCRE extension has reverted to version 10.44 due to previously encountered issues.
The PgSql extension has also been upgraded to fix segmentation faults that occurred when fetching rows into classes that cannot be instantiated. Similarly, the Reflection component has addressed inaccuracies in the ReflectionClass::isIterable() method for classes with property hooks, ensuring proper iterable checks.
The Standard Library enhancements include fixes for heap overflows and the misidentification of images, particularly resolving vulnerabilities in the mail() function when handling empty content. Furthermore, a previous error in identifying AVIF images as HEIF has been corrected.
Stream improvements focus on socket stream modules, which were affected by incorrect conditions on Win32 and Win64 systems. Updates to the URI library have refined its handling of username and password components, aligning its behavior with the WHATWG URL Standard, particularly in distinguishing between missing and empty values.
Finally, the Zip extension has been improved with fixes related to caching issues for Zend release fcall info in methods like registerProgressCallback() and registerCancelCallback().
As PHP 8.5.0 continues to undergo testing, the community is encouraged to provide feedback to ensure a stable and secure official release.
In summary, PHP 8.5.0 RC4 represents a significant step toward enhancing the robustness and security of the language, with critical bug fixes and a focus on improving developer experience through more accurate and predictable behavior in various components. The final release is anticipated soon, and users are encouraged to test the candidate version to identify any remaining issues
PHP 8.5.0 RC4 released
The fourth release candidate for PHP 8.5.0 has been made available for testing, addressing various bugs and improvements across multiple components. Key updates include fixes for critical issues related to core functionality, OPCache, PCRE, PgSql, Reflection, Standard Library, Streams, URI, and Zip extensions. These enhancements aim to improve the overall stability and security of PHP 8.5.0, with specific changes targeting heap overflows, image misidentification, and incorrect behavior in certain scenarios. The release candidate is now available for testing and feedback before its official release as PHP 8.5.0.
