diff --git a/releases/8.5/languages/en.php b/releases/8.5/languages/en.php
index 3ac7f87c20..7f3011b05c 100644
--- a/releases/8.5/languages/en.php
+++ b/releases/8.5/languages/en.php
@@ -1,29 +1,31 @@
'PHP 8.5 is a major update of the PHP language. It contains many new features, such as the new URI extension, support for modifying properties while cloning, the Pipe operator, performance improvements, bug fixes, and general cleanup.',
+ 'common_header' => 'PHP 8.5 is a major update of the PHP language, with new features including the Pipe Operator, URI extension, and support for modifying properties while cloning.',
'documentation' => 'Doc',
'main_title' => 'Released!',
- 'main_subtitle' => 'PHP 8.5 is a major update of the PHP language.
It contains many new features, such as the new URI extension, support for modifying properties while cloning, the Pipe operator, performance improvements, bug fixes, and general cleanup.',
- 'upgrade_now' => 'Upgrade to PHP 8.5 now!',
+ 'main_subtitle' => 'PHP 8.5 is a major update of the PHP language, with new features including the Pipe Operator, URI extension, and support for modifying properties while cloning.',
+ 'upgrade_now' => 'Upgrade to PHP 8.5',
'pipe_operator_title' => 'Pipe Operator',
- 'pipe_operator_description' => '
The pipe operator allows chaining function calls together without dealing with intermediary variables. That can be especially helpful when replacing many "nested calls" with a chain that can be read forwards, rather than inside-out.
Learn more about the backstory of this feature in The PHP Foundation’s blog.
', - 'url_parsing_api_title' => 'New URI Extension', - 'url_parsing_api_description' => 'As an always-available part of PHP\'s standard library the new URI extension provides APIs to parse and modify URIs and URLs according to the RFC 3986 and the WHATWG URL standards.
The secure and standards-compliant URI parsing is powered by the uriparser (RFC 3986) and Lexbor (WHATWG URL) libraries.
Learn more about the backstory of this feature in The PHP Foundation’s blog.
', + 'pipe_operator_description' => 'The pipe operator allows chaining function calls together without dealing with intermediary variables. This enables replacing many "nested calls" with a chain that can be read forwards, rather than inside-out.
Learn more about the backstory of this feature in The PHP Foundation’s blog.
', + 'uri_extension_title' => 'URI Extension', + 'uri_extension_description' => 'The new always-available URI extension provides APIs to securely parse and modify URIs and URLs according to the RFC 3986 and the WHATWG URL standards.
Powered by the uriparser (RFC 3986) and Lexbor (WHATWG URL) libraries.
Learn more about the backstory of this feature in The PHP Foundation’s blog.
', 'clone_with_title' => 'Clone With', - 'clone_with_description' => 'It is now possible to update properties during object cloning by passing an associative array with the updated to theclone() function. This enables straight-forward support of the "with-er" pattern for readonly classes.',
+ 'clone_with_description' => 'It is now possible to update properties during object cloning by passing an associative array to the clone() function. This enables straightforward support of the "with-er" pattern for readonly classes.',
'no_discard_title' => '#[\NoDiscard] Attribute',
- 'no_discard_description' => 'By adding the #[\NoDiscard] attribute to a function, PHP will check whether the returned value is consumed and emit a warning if it is not. This allows to improve the safety of APIs where the returned value is important, but where it is easy to forget using the return value by accident.
The associated (void) cast can be used to indicate that a value is intentionally unused.
array_first() and array_last() functions',
+ 'no_discard_description' => 'By adding the #[\NoDiscard] attribute to a function, PHP will check whether the returned value is consumed and emit a warning if it is not. This allows improving the safety of APIs where the returned value is important, but it\'s easy to forget using the return value by accident.
The associated (void) cast can be used to indicate that a value is intentionally unused.
array_first() and array_last() functions',
+ 'fcc_in_const_expr_title' => 'Closures and First-Class Callables in Constant Expressions',
+ 'fcc_in_const_expr_description' => 'Static closures and first-class callables can now be used in constant expressions. This includes attribute parameters, default values of properties and parameters, and constants.',
+ 'persistent_curl_share_handles_title' => 'Persistent cURL Share Handles',
+ 'persistent_curl_share_handles_description' => 'Unlike curl_share_init(), handles created by curl_share_init_persistent() will not be destroyed at the end of the PHP request. If a persistent share handle with the same set of share options is found, it will be reused, avoiding the cost of initializing cURL handles each time.',
- 'new_classes_title' => 'New Classes, Interfaces, and Functions',
+ 'new_classes_title' => 'Additional features and improvements',
'bc_title' => 'Deprecations and backward compatibility breaks',
- 'footer_title' => 'Better performance, better syntax, improved type safety.',
- 'footer_description' => 'For source downloads of PHP 8.5 please visit the downloads page. Windows binaries can be found on the PHP for Windows site. The list of changes is recorded in the ChangeLog.
-The migration guide is available in the PHP Manual. Please consult it for a detailed list of new features and backward-incompatible changes.
', + 'footer_title' => 'Better syntax, improved performance and type safety.', + 'footer_description' => 'The full list of changes is recorded in the ChangeLog.
+Please consult the Migration Guide for a detailed list of new features and backward-incompatible changes.
', ]; diff --git a/releases/8.5/release.inc b/releases/8.5/release.inc index 48a2f1abbc..46cb88c4d5 100644 --- a/releases/8.5/release.inc +++ b/releases/8.5/release.inc @@ -36,9 +36,9 @@ common_header(message('common_header', $lang));CurlSharePersistentHandle class, curl_multi_get_handles(), curl_share_init_persistent() functions are available.
+ = message('fcc_in_const_expr_description', $lang) ?>
final#[\Override] now works on properties#[\Deprecated] available for traits#[\DelayedTargetValidation] attribute is availableget_error_handler(), get_exception_handler() functions are available.Closure::getCurrent method is available.#[\Override] attribute can now be applied to properties.#[\Deprecated] attribute can be used on traits and constants.final using constructor property promotion.Closure::getCurrent() method to simplify recursion in anonymous functions.setcookie() and setrawcookie() now support the "partitioned" key.get_error_handler() and get_exception_handler() functions are available.Dom\Element::getElementsByClassName() and Dom\Element::insertAdjacentHTML() methods are available.enchant_dict_remove_from_session() and enchant_dict_remove() functions are available.grapheme_levenshtein() function is available.opcache_is_script_cached_in_file_cache() function is available.ReflectionConstant::getFileName(), ReflectionConstant::getExtension(), ReflectionConstant::getExtensionName(), ReflectionConstant::getAttributes(), and ReflectionProperty::getMangledName() methods are available.grapheme_levenshtein() function.#[\DelayedTargetValidation] attribute can be used to suppress compile-time errors from core and extension attributes that are used on invalid targets.shell_exec() has been deprecated.(boolean), (integer), (double), and (binary) have been deprecated. Use (bool), (int), (float), and (string) instead, respectively.disable_classes INI setting has been removed as it causes various engine assumptions to be broken.null as an array offset or when calling array_key_exists() is now deprecated. Use an empty string instead.class_alias().__sleep() and __wakeup() magic methods have been soft-deprecated. The __serialize() and __unserialize() magic methods should be used instead.NAN to other types.int if they cannot be represented as one.