Key updates in PHP 8.5.0 Beta 2 include:
- Core Enhancements: The release addresses numerous bugs, including issues with file inclusion and pipe operator functionality. Notably, the `report_memleaks` INI directive is deprecated, and constant redeclaration will trigger an error in PHP 9. The `disable_classes` INI directive has been removed, and various closure binding issues have also been deprecated.
- New Features: A significant feature is the introduction of the TAILCALL VM, which enhances performance and is automatically enabled when compiling with Clang version 19 or higher. Additionally, there is support for configuring the URI parser for FTP/FTPS and SSL/TLS stream wrappers.
- Deprecations: Several practices are being phased out, such as incrementing non-numeric strings and the combination of pipe and arrow functions. The predefined variable `$http_response_header` is also deprecated.
- Module-Specific Fixes: Each module has seen improvements. For example, the filter module now supports configuring the URI parser for `FILTER_VALIDATE_URL`, and the session module has introduced support for partitioned cookies.
The release aims to improve the overall functionality and stability of PHP, ensuring that developers have a robust environment for their applications. It is recommended for developers to test the beta version and provide feedback, as this will help the PHP development team finalize the stable release.
Looking ahead, PHP 8.5.0 is expected to provide enhanced capabilities and performance improvements. The focus on deprecations signals a shift towards a cleaner and more efficient codebase, encouraging developers to adopt best practices. As more features are tested and finalized, the PHP community can anticipate a more streamlined development experience with the official release of PHP 8.5.0
PHP 8.5.0 Beta 2 released
Daniel Scherzer has announced the release of the second beta release of PHP 8.5.0 for testing with several bug fixes and improvements across various modules, including core, filter, ODBC, opcache, OpenSSL, PDO, Phar, session, SOAP, SPL, standard, tokenizer, and URI. The report_memleaks INI directive has been deprecated, constant redeclaration is deprecated, and the disable_classes INI directive has been removed. New features include the ability to set up the URI parser for FTP/FTPS, SSL/TLS stream wrappers, and FILTER_VALIDATE_URL, along with the new TAILCALL VM that is automatically enabled when compiling with Clang version 19 or higher on x86_ Additionally, several deprecations have been made, including prohibiting pipe & arrow function combinations, incrementing non-numeric strings, and various closure binding issues.