diff --git a/releases/8.4/languages/en.php b/releases/8.4/languages/en.php index b960c92f60..42f8c7b2fc 100644 --- a/releases/8.4/languages/en.php +++ b/releases/8.4/languages/en.php @@ -1,38 +1,27 @@ 'PHP 8.4 is a major update of the PHP language. It contains many new features, such as property hooks, asymmetric visibility, lazy objects, and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.', + 'common_header' => 'PHP 8.4 is a major update of the PHP language. It contains many new features, such as property hooks, asymmetric visibility, lazy objects, performance improvements, bug fixes, and general cleanup.', 'documentation' => 'Doc', 'main_title' => 'Released!', - 'main_subtitle' => 'PHP 8.4 is a major update of the PHP language.
It contains many new features, such as property hooks, asymmetric visibility, lazy objects, and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.', + 'main_subtitle' => 'PHP 8.4 is a major update of the PHP language.
It contains many new features, such as property hooks, asymmetric visibility, lazy objects, performance improvements, bug fixes, and general cleanup.', 'upgrade_now' => 'Upgrade to PHP 8.4 now!', 'property_hooks_title' => 'Property hooks', 'asymmetric_visibility_title' => 'Asymmetric Visibility', - 'domdocument_html5_parser_title' => 'New HTML5 support', - 'dom_additions_84_title' => 'New ext-dom features', + 'lazy_objects_title' => 'Lazy Objects', + 'dom_additions_html5_title' => 'New ext-dom features and HTML5 support', + 'new_array_find_title' => 'New array_*() functions', + 'new_array_find_description' => 'New functions array_find(), array_find_key, array_any, and array_all are available.', 'new_without_parentheses_title' => 'new MyClass()->method() without parentheses', 'new_classes_title' => 'New Classes, Interfaces, and Functions', - 'new_bc_functions' => 'New bcfloor(), bcceil(), and bcround() functions.', - 'new_dom_methods' => 'New DOMNode::compareDocumentPosition(), DOMXPath::registerPhpFunctionNS(), and DOMXPath::quote() methods.', - 'new_intl_methods' => 'New IntlDateFormatter::getIanaID(), IntlDateFormatter::parseToCalendar(), and SpoofChecker::setAllowedChars() methods, and also intltz_get_iana_id(), grapheme_str_split() functions.', - 'new_mbstring_functions' => 'New mb_trim(), mb_ltrim(), mb_rtrim(), mb_ucfirst(), and mb_lcfirst() functions.', - 'new_pcntl_functions' => 'New pcntl_setns(), pcntl_getcpuaffinity(), pcntl_setcpuaffinity(), pcntl_getcpu(), pcntl_waitid(), and pcntl_getqos_class() functions.', - 'new_pdo_method' => 'New Pdo\Pgsql::setNoticeCallback() method.', - 'new_pgsql_functions' => 'New pg_change_password(), pg_put_copy_data(), pg_socket_poll(), pg_jit(), and pg_set_chunked_rows_size() functions.', - 'new_reflection_methods' => 'New ReflectionClass::newLazyGhost(), ReflectionClass::newLazyProxy(), ReflectionClass::resetAsLazyGhost(), ReflectionClass::resetAsLazyProxy(), ReflectionClass::isUninitializedLazyObject(), ReflectionClass::initializeLazyObject(), ReflectionClass::markLazyObjectAsInitialized(), ReflectionClass::getLazyInitializer(), ReflectionProperty::skipLazyInitialization, and ReflectionProperty::setRawValueWithoutLazyInitialization methods.', - 'new_sodium_functions' => 'New sodium_crypto_aead_aegis128l_*(), sodium_crypto_aead_aegis256l_*(), and sodium_crypto_aead_aes256gcm_*() functions.', - 'new_soap_method' => 'New SoapServer::__getLastResponse() method.', - 'new_standard_functions' => 'New http_get_last_response_headers(), http_clear_last_response_headers(), fpow(), array_find(), array_find_key(), array_all(), and array_any() functions.', - 'new_tidy_methods' => 'New tidyNode::getNextSibling() and tidyNode::getPreviousSibling() methods.', - 'new_xml_methods' => 'New XMLReader::fromStream(), XMLReader::fromUri(), XMLReader::fromString(), XMLWriter::toStream(), XMLWriter::toUri(), and XMLWriter::toMemory() methods.', - 'new_xsl_method' => 'New XSLTProcessor::registerPhpFunctionNS() method.', 'bc_title' => 'Deprecations and backward compatibility breaks', 'bc_pecl' => 'The IMAP, OCI8, PDO_OCI, and pspell extensions have been unbundled and moved to PECL.', 'bc_nullable_parameter_types' => 'Implicitly nullable parameter types are now deprecated.', 'bc_classname' => 'Using _ as a class name is now deprecated.', + 'bc_zero_raised_to_negative_number' => 'Raising zero to the power of a negative number is now deprecated.', 'footer_title' => 'Better performance, better syntax, improved type safety.', 'footer_description' => '

For source downloads of PHP 8.4 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.

diff --git a/releases/8.4/release.inc b/releases/8.4/release.inc index 6ecde47602..f1f001f8c7 100644 --- a/releases/8.4/release.inc +++ b/releases/8.4/release.inc @@ -47,7 +47,10 @@ common_header(message('common_header', $lang)); <<<'PHP' class User { - public function __construct(private string $first, private string $last) {} + public function __construct( + private string $first, + private string $last + ) {} public function setFullName(string $value): string { [$this->first, $this->last] = explode(' ', $value, 2); @@ -70,7 +73,10 @@ PHP <<<'PHP' class User { - public function __construct(private string $first, private string $last) {} + public function __construct( + private string $first, + private string $last + ) {} public string $fullName { get { @@ -104,7 +110,7 @@ class PhpVersion } $phpVersion = new PhpVersion(); -$foo->version = 'PHP 8.4'; // No error +$phpVersion->version = 'PHP 8.4'; // No error PHP ); ?> @@ -122,7 +128,7 @@ class PhpVersion } $phpVersion = new PhpVersion(); -$foo->version = 'PHP 8.3'; // Visibility error +$phpVersion->version = 'PHP 8.3'; // Visibility error PHP ); ?> @@ -130,9 +136,9 @@ PHP
-

- - RFC +

+ + RFC

@@ -160,9 +166,10 @@ PHP
-

- - RFC +

+ + RFC + RFC

@@ -189,6 +196,53 @@ PHP
+
+

+ + RFC +

+
+
+
PHP < 8.4
+
+ +
+
+
+
+
PHP 8.4
+
+ +
+
+
+
+ +
+

@@ -200,7 +254,8 @@ PHP

    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • +
@@ -264,6 +307,7 @@ PHP
  • +