Darory is pleased to announce full support for the latest release of PHP, version 8.5, across all company servers. This update aligns with Darory’s ongoing commitment to providing cutting-edge technologies, high performance, and enhanced security for all clients and development teams.
PHP 8.5 introduces a range of improvements and new features designed to enhance code clarity, improve performance, strengthen error handling, and streamline development processes. It also removes several deprecated functionalities to maintain a cleaner and more modern language core.
Below is an overview of the most important additions and changes in PHP 8.5.
Key New Features in PHP 8.5
1. Pipe Operator (|>)
One of the most significant additions in PHP 8.5 is the pipe operator, which enables clean and readable function chaining by piping the return value of one function into the next. This reduces the need for nested function calls and improves overall code readability.
2. Improved Filtering with Exception Support
filter_var and related functions can now throw exceptions when validation fails, instead of returning false. This improves reliability and error-handling flow in critical applications.
3. New Directive: max_memory_limit
A new INI directive allows defining a fixed upper bound for memory usage that cannot be bypassed or increased during script execution. This is particularly valuable for shared hosting and containerized environments.
4. New cURL Function: curl_multi_get_handles
This function provides easier access to active cURL handles when using multi-cURL operations, allowing better management of concurrent network requests.
5. IntlListFormatter Addition
The new IntlListFormatter class provides localized list formatting, enhancing user experience in multilingual applications.
6. New CLI Option: php --ini=diff
This command displays only non-default INI configurations, making it easier to identify custom or modified settings in development and production environments.
7. New Array Helper Functions
array_first()array_last()- These new functions simplify access to the first and last elements of an array.
8. New RTL Language Detection
PHP 8.5 introduces:
locale_is_right_to_left()Locale::isRightToLeft()- Both simplify detecting right-to-left languages such as Arabic, Hebrew, and Persian.
9. Enhanced Fatal Error Handling
Fatal errors now include a full stack trace, significantly improving debugging and reducing development time.
10. New Handler Retrieval Functions
get_exception_handler()get_error_handler()- These allow developers to inspect currently active error and exception handlers programmatically.
11. New Build Constants
PHP_BUILD_PROVIDERPHP_BUILD_DATE- Useful for build systems, deployments, and documentation.
Deprecated Features in PHP 8.5
The PHP team continues to phase out outdated or redundant features. The following items are now deprecated:
- Non-canonical type casts such as
boolean,integer, anddouble mysqli_execute(usemysqli_stmt_executeinstead)- Several no-op functions:
curl_closecurl_share_closexml_parser_freesocket_set_timeout(replaced bystream_set_timeout)- Emitting output inside custom output buffer handlers
- All
MHASH_*constants
These deprecations prepare the way for full removal in future PHP releases.
Removed Features in PHP 8.5
- The CLI/CGI options
-zand--zend-extensionhave been removed. - The recommended alternative is:
-
-d zend_extension=xdebug
PHP 8.5 Now Supported Across All Darory Servers
With full support for PHP 8.5, Darory ensures developers and businesses have immediate access to the latest improvements in performance, security, and modern PHP development practices.
Darory continues to upgrade its infrastructure to keep pace with international standards and to provide clients with reliable, optimized hosting environments. Our technical team is ready to assist with upgrading applications or configuring settings to take full advantage of PHP 8.5.
Clients who wish to migrate their projects to PHP 8.5 or need any technical guidance may contact Darory Support at any time.