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

  1. array_first()
  2. array_last()
  3. These new functions simplify access to the first and last elements of an array.

8. New RTL Language Detection

PHP 8.5 introduces:

  1. locale_is_right_to_left()
  2. Locale::isRightToLeft()
  3. 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

  1. get_exception_handler()
  2. get_error_handler()
  3. These allow developers to inspect currently active error and exception handlers programmatically.

11. New Build Constants

  1. PHP_BUILD_PROVIDER
  2. PHP_BUILD_DATE
  3. 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:

  1. Non-canonical type casts such as boolean, integer, and double
  2. mysqli_execute (use mysqli_stmt_execute instead)
  3. Several no-op functions:
  4. curl_close
  5. curl_share_close
  6. xml_parser_free
  7. socket_set_timeout (replaced by stream_set_timeout)
  8. Emitting output inside custom output buffer handlers
  9. All MHASH_* constants

These deprecations prepare the way for full removal in future PHP releases.

Removed Features in PHP 8.5

  1. The CLI/CGI options -z and --zend-extension have been removed.
  2. The recommended alternative is:
  3. -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.