diff --git a/releases/8.0/common.php b/releases/8.0/common.php
index 6e03f6b59f..bd1b9a5d30 100644
--- a/releases/8.0/common.php
+++ b/releases/8.0/common.php
@@ -69,3 +69,13 @@ function language_chooser(string $currentLang): void {
';
}
+
+function message($code, $language = 'en')
+{
+ $original = require __DIR__ . '/languages/en.php';
+ if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
+ $translation = require __DIR__ . '/languages/' . $language . '.php';
+ }
+
+ return $translation[$code] ?? $original[$code] ?? $code;
+}
diff --git a/releases/8.0/de.php b/releases/8.0/de.php
index 78b1252027..45cb5470ed 100644
--- a/releases/8.0/de.php
+++ b/releases/8.0/de.php
@@ -1,506 +1,5 @@
- Anstelle von PHPDoc Annotations kannst du nun strukturierte Meta-Daten in nativer PHP Syntax nutzen. Weniger Codewiederholungen für das Definieren und Initialisieren von Objektattributen. Anstelle von PHPDoc Annotations für kombinierte Typen kannst du native Union-Type-Deklarationen verwenden,
- welche zur Laufzeit validiert werden. Der neue Match Ausdruck ist ähnlich wie die Switch Anweisung und bietet folgende Funktionen: Anstelle von Null-Checks kannst du Funktionsaufrufe nun direkt mit dem neuen Nullsafe Operator
- aneinanderreihen. Wenn ein Funktionsaufruf innerhalb der Kette Null zurückliefert, wird die weitere
- Ausführung abgebrochen und die gesamte Kette wird zu Null ausgewertet. Wenn eine Zahl mit einem numerischen String verglichen wird, benutzt PHP 8 einen Zahlen-Vergleich. Andernfalls
- wird die Zahl zu einem String konvertiert und ein String-Vergleich durchgeführt. Die meisten internen Funktionen erzeugen nun eine Error Exception wenn die Typenvalidierung der Parameter
- fehlschlägt.
- PHP 8 führt zwei JIT Compiler Engines ein. Tracing-JIT, der vielversprechendere der beiden, zeigt eine bis zu drei
- mal bessere Performance in synthetischen Benchmarks und eine 1,5 bis zweifache Verbesserung in einigen speziellen,
- langlaufenden Anwendungen. Die Performance einer typischen Anwendung ist auf dem Niveau von PHP 7.4.
-
- Instead of PHPDoc annotations, you can now use structured metadata with PHP's native syntax. Less boilerplate code to define and initialize properties. Instead of PHPDoc annotations for a combination of types, you can use native union type declarations that are
- validated at runtime. The new match is similar to switch and has the following features: Instead of null check conditions, you can now use a chain of calls with the new nullsafe operator. When the
- evaluation of one element in the chain fails, the execution of the entire chain aborts and the entire chain
- evaluates to null. When comparing to a numeric string, PHP 8 uses a number comparison. Otherwise, it converts the number to a
- string and uses a string comparison. Most of the internal functions now throw an Error exception if the validation of the parameters fails.
- PHP 8 introduces two JIT compilation engines. Tracing JIT, the most promising of the two, shows about 3 times better
- performance on synthetic benchmarks and 1.5–2 times improvement on some specific long-running applications. Typical
- application performance is on par with PHP 7.4.
-
- En vez de anotaciones en PHPDoc, puedes usar metadatos estructurados con la sintaxis nativa de PHP. Menos código repetitivo para definir e inicializar una propiedad. En vez de anotaciones en PHPDoc para combinar tipos, puedes usar una declaración de tipo unión nativa que será validada en el momento de ejecución. Las nuevas expresiones match son similares a switch y tienen las siguientes características: En vez de verificar condiciones nulas, tu puedes utilizar una cadena de llamadas con el nuevo operador nullsafe.
- Cuando la evaluación de un elemento falla, la ejecución de la entire cadena es abortada y la cadena entera es evaluada como nula. Cuando comparas con un “string” numérico, PHP8 usa comparación numérica o de otro caso convierte el número a
- un "string" y asi los compara. La mayoría de las funciones internas ahora proveen un error de excepción si el parámetro no es validado.
- PHP8 introduce 2 motores de compilación JIT. Transit JIT, es el más prometedor de los dos y performa 3 veces mejor
- en benchmarks sintéticos y 1.5-2 mejor en algunas aplicaciones específicas a largo plazo. Performancia de aplicaciones
- típicas es a la par de las de PHP7.4
-
- Au lieux d'annotations PHPDoc, vous pouvez désormais utiliser les métadonnées structurés avec la syntaxe native de PHP. Moins de code redondant pour définir et initialiser les propriétés.
- Au lieu d'annotation PHPDoc pour une combinaison de type, vous pouvez utiliser les déclarations de types
- d'union native qui sont validées lors de l'exécution.
- La nouvelle instruction match est similaire à switch et a les fonctionnalités suivantes :
- Au lieu de faire des vérifications conditionnelles de null, vous pouvez utiliser une chaîne d'appel
- avec le nouvel opérateur nullsafe. Qui lorsque l'évaluation d'un élément de la chaîne échoue, l'exécution
- de la chaîne complète est terminée et la chaîne entière évalue à null.
-
- Lors de la comparaison avec une chaîne numérique, PHP 8 utilise une comparaison de nombre.
- Sinon, il convertit le nombre à une chaîne de caractères et utilise une comparaison de chaîne de caractères.
- La plupart des fonctions internes lancent désormais une exception Error si la validation du paramètre échoue.
- PHP 8 introduit deux moteurs de compilation JIT (juste à temps/compilation à la volée).
- Le Tracing JIT, le plus prometteur des deux, montre environ 3 fois plus de performances sur des benchmarks
- synthétiques et 1,5-2 fois plus de performances sur certaines applications à longue durée d'exécution.
- Généralement les performances des applications sont identiques à PHP 7.4.
-
- Invece delle annotazioni PHPDoc, ora puoi usare metadati strutturati nella sintassi nativa PHP. Meno ripetizioni di codice per definire ed inizializzare le proprietà. Invece di indicare una combinazione di tipi con le annotazioni PHPDoc, puoi usare una dichiarazione nativa
- di tipo unione che viene validato durante l'esecuzione. La nuova espressione match è simile allo switch e ha le seguenti funzionalità: Invece di controllare la presenza di un null, puoi ora usare una catena di chiamate con il nuovo operatore nullsafe. Quando
- la valutazione di un elemento della catena fallisce, l'esecuzione della catena si interrompe e l'intera catena
- restituisce il valore null. Nella comparazione di una stringa numerica, PHP 8 usa la comparazione numerica. Altrimenti, converte il numero
- in una stringa e usa la comparazione tra stringhe. La maggior parte delle funzioni native ora lanciano una eccezione Error se la validazione degli argomenti fallisce.
- PHP 8 intrduce due motori di compilazione JIT. Tracing JIT, il più promettente dei due, mostra delle prestazioni 3
- volte superiori nei benchmarks sintetici e 1.5–2 volte superiori per alcuni specifici processi applicativi a lunga esecuzione.
- Le prestazioni delle tipiche applicazioni web sono al pari con PHP 7.4.
-
- PHPDoc のアノテーションの代わりに、PHP ネイティブの文法で構造化されたメタデータを扱えるようになりました。 ボイラープレートのコードを減らすため、コンストラクタでプロパティを定義し、初期化します。 PHPDoc のアノテーションを使って型を組み合わせる代わりに、実行時に検証が行われる union型 をネイティブで使えるようになりました。 match は switch 文に似ていますが、以下の機能があります: null チェックの条件を追加する代わりに、nullsafe演算子 を使って呼び出しをチェインさせられるようになりました。呼び出しチェインのひとつが失敗すると、チェインの実行全体が停止し、null と評価されます。 数値形式の文字列と比較する場合は、PHP 8 は数値として比較を行います。それ以外の場合は、数値を文字列に変換し、文字列として比較を行います。 ほとんどの内部関数は、引数の検証に失敗すると Error 例外をスローするようになりました。
- PHP 8 は JITコンパイル のエンジンをふたつ搭載しています。
- トレーシングJITは、もっとも有望なふたつの人工的なベンチマークで、
- 約3倍のパフォーマンスを示しました。
- また、長期間動いている特定のあるアプリケーションでは、1.5-2倍のパフォーマンス向上が見られました。
- 典型的なアプリケーションのパフォーマンスは、PHP 7.4 と同等でした。
-
- PHPDoc ანოტაციების ნაცვლად, შეგიძლიათ გამოიყენოთ სტრუქტურული მეტამონაცემები ნატიური PHP სინტაქსით. ნაკლები შაბლონური კოდი თვისებების განსაზღვრისა და ინიციალიზაციისთვის. PHPDoc ანოტაციების ნაცვლად, გაერთიანებული ტიპებისთვის შეგიძლიათ გამოიყენოთ განცხადება union type,
- რომლებიც მოწმდება შესრულების დროს. ახალი გამოსახულება match, switch ოპერატორის მსგავსია შემდეგი მახასიათებლებით: null-ის შემოწმების ნაცვლად, შეგიძლიათ გამოიყენოთ გამოძახების თანმიმდევრობა ახალ Nullsafe ოპერატორით.
- როდესაც ერთ-ერთი ელემენტი თანმიმდევრობაში აბრუნებს null-ს, შესრულება ჩერდება და მთელი თანმიმდევრობა აბრუნებს null-ს. PHP 8 რიცხვითი სტრიქონის შედარებისას იყენებს რიცხვების შედარებას. წინააღმდეგ შემთხვევაში,
- რიცხვი გარდაიქმნება სტრიქონად და გამოიყენება სტრიქონების შედარება. შიდა ფუნქციების უმეტესობა უკვე გამორიცხავს Error გამონაკლისს, თუ შეცდომა მოხდა პარამეტრის შემოწმებისას.
- PHP 8 წარმოგიდგენთ JIT-კომპილაციის ორ მექანიზმს. JIT ტრასირება, მათგან ყველაზე პერსპექტიულია,
- სინთეზურ ბენჩმარკზე აჩვენებს მუშაობის გაუმჯობესებას დაახლოებით 3-ჯერ და 1.5-2-ჯერ ზოგიერთ დიდ ხანს მომუშავე აპლიკაციებში.
- აპლიკაციის სტანდარტული წარმადობა ერთ და იგივე დონეზეა PHP 7.4-თან.
-
-
-
Es beinhaltet viele neue Funktionen
- und Optimierungen wie beispielsweise Named Arguments, Union Types, Attribute, Constructor Property Promotion,
- Match Ausdrücke, Nullsafe Operator, JIT und Verbesserungen des Typen-Systems, der Fehlerbehandlung und der
- Konsistenz.
-
- Named Arguments
- RFC
- Doc
-
-
-
-
- Attribute
- RFC Doc
-
-
- Constructor Property Promotion
- RFC Doc
-
-
- Union Types
- RFC Doc
-
-
- Match Ausdruck
- RFC Doc
-
-
-
-
- Nullsafe Operator
- RFC
-
-
- Vernünftige String-zu-Zahl Vergleiche
- RFC
-
-
- Konsistente Typen-Fehler für interne Funktionen
- RFC
-
- Just-In-Time Compiler
-
- Relativer Beitrag des JIT Compilers zur Performance von PHP 8
-
-
-
Verbesserungen am Typen-System und an der Fehlerbehandlung
-
-
- Weitere Syntax-Anpassungen und Verbesserungen
-
-
-
- Neue Klassen, Interfaces, und Funktionen
-
-
-
-
It contains many new features and
- optimizations including named arguments, union types, attributes, constructor property promotion, match
- expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency.
-
- Named arguments
- RFC
- Doc
-
-
-
-
- Attributes
- RFC Doc
-
-
- Constructor property promotion
- RFC Doc
-
-
- Union types
- RFC Doc
-
-
- Match expression
- RFC Doc
-
-
-
-
- Nullsafe operator
- RFC
-
-
- Saner string to number comparisons
- RFC
-
-
- Consistent type errors for internal functions
- RFC
-
- Just-In-Time compilation
-
- Relative JIT contribution to PHP 8 performance
-
-
-
Type system and error handling improvements
-
-
- Other syntax tweaks and improvements
-
-
-
- New Classes, Interfaces, and Functions
-
-
-
-
- Argumentos nombrados
- RFC
- Doc
-
-
-
-
- Atributos
- RFC Doc
-
-
- Promoción de propiedades constructivas
- RFC Doc
-
-
- Tipos de unión
- RFC
- Doc
-
-
- Expresiones match
- RFC Doc
-
-
-
-
- Operador Nullsafe
- RFC
-
-
- Comparaciones inteligentes entre “strings” y números
- RFC
-
-
- Errores consistentes para funciones internas.
- RFC
-
- JIT (traducciones dinámicas)
-
- JIT contribuciones al funcionamiento relativo de PHP8
-
-
-
Mejorias en los tipos de sistemas y manejo de errores
-
-
- Otros ajustes y mejoras del sintax
-
-
-
- Nuevas clases, interfaces y funciones
-
-
-
-
- Elle contient beaucoup de nouvelles fonctionnalités et d'optimisations, incluant les arguments nommés,
- les types d'union, attributs, promotion de propriété de constructeur, l'expression match, l'opérateur
- nullsafe, JIT (Compilation à la Volée), et des améliorations dans le système de typage, la gestion
- d'erreur, et de cohérence.
-
- Arguments nommés
- RFC
- Doc
-
-
-
-
- Attributs
- RFC Doc
-
-
- Promotion de propriétés de constructeur
- RFC Doc
-
-
- Types d'union
- RFC Doc
-
-
- Expression match
- RFC Doc
-
-
-
-
- Opérateur Nullsafe
- RFC
-
-
- Comparaisons entre les chaînes de caractères et les nombres plus saines
- RFC
-
-
- Erreurs de type cohérent pour les fonctions internes
- RFC
-
- Compilation Juste-à-Temps (JIT)
-
- Contribution relative du JIT à la performance de PHP 8
-
-
-
Amélioration du système de typage et de la gestion d'erreur
-
-
- Autres ajustements de syntaxe et améliorations
-
-
-
- Nouvelles Classes, Interfaces, et Fonctions
-
-
-
-
- Contiene molte nuove funzionalità ed ottimizzazioni quali i named arguments,
- la definizione di tipi unione, gli attributi, la promozione a proprietà degli argomenti del costruttore,
- l'espressione match, l'operatore nullsafe, la compilazione JIT e
- miglioramenti al sistema dei tipi, alla gestione degli errori e alla consistenza.
-
- Named arguments
- RFC
- Doc
-
-
-
-
- Attributi
- RFC Doc
-
-
- Promozione a proprietà degli argomenti del costruttore
- RFC Doc
-
-
- Tipi unione
- RFC Doc
-
-
- Espressione match
- RFC Doc
-
-
-
-
- Operatore nullsafe
- RFC
-
-
- Comparazioni più coerenti di stringhe e numeri
- RFC
-
-
- Tipi di errori consistenti per le funzioni native
- RFC
-
- Compilazione Just-In-Time
-
- Miglioramenti delle performance in PHP 8 grazie a JIT
-
-
-
Sistema dei tipi e miglioramenti alla gestione degli errori
-
-
- Altre ritocchi e migliorie di sintassi
-
-
-
- Nuove classi, interfacce e funzioni
-
-
-
-
このアップデートには、たくさんの新機能や最適化が含まれています。
- たとえば 名前付き引数、 union 型、アトリビュート、コンストラクタでのプロパティのプロモーション、match 式、nullsafe 演算子、JIT、型システムの改善、エラーハンドリング、一貫性の向上などです。
-
- 名前付き引数
- RFC
- Doc
-
-
-
-
- アトリビュート
- RFC Doc
-
-
- コンストラクタでの、プロパティのプロモーション
- RFC Doc
-
-
- Union 型
- RFC Doc
-
-
- Match 式
- RFC Doc
-
-
-
-
- Nullsafe 演算子
- RFC
-
-
- 数値と文字列の比較
- RFC
-
-
-
- 内部関数の型に関するエラーが一貫したものに
- RFC
-
- JIT (ジャストインタイム) コンパイル
-
- PHP 8 のパフォーマンスに対するJITの貢献
-
-
-
-
型システムとエラーハンドリングの改善
-
-
- その他文法の調整や改善
-
-
-
- 新しいクラス、インターフェイス、関数
-
-
-
-
ის შეიცავს ბევრ ახალ შესაძლებლობას და ოპტიმიზაციებს,
- მათ შორის დასახელებული არგუმენტები, union type, ატრიბუტები, თვისებების გამარტივებული განსაზღვრა კონსტრუქტორში, გამოსახულება match,
- ოპერატორი nullsafe, JIT და გაუმჯობესებები ტიპის სისტემაში, შეცდომების დამუშავება და თანმიმდევრულობა.
-
- დასახელებული არგუმენტები
- RFC
- დოკუმენტაცია
-
-
-
-
- Attributes
- RFC დოკუმენტაცია
-
-
- თვისებების განახლება კონსტრუქტორში
- RFC დოკუმენტაცია
-
-
- Union types
- RFC დოკუმენტაცია
-
-
- გამოსახულება Match
- RFC დოკუმენტაცია
-
-
-
-
- ოპერატორი Nullsafe
- RFC
-
-
- სტრიქონებისა და რიცხვების გაუმჯობესებული შედარება
- RFC
-
-
- ტიპების თანმიმდევრულობის შეცდომები ჩაშენებული ფუნქციებისთვის
- RFC
-
- კომპილაცია Just-In-Time
-
- JIT-ის შედარებითი წვლილი PHP 8-ის წარმადობაში
-
-
-
გაუმჯობესებები ტიპის სისტემაში და შეცდომების დამუშავება
-
-
- სინტაქსის სხვა გაუმჯობესება
-
-
-
- ახალი კლასები, ინტერფეისები და ფუნქციები
-
-
-
Es beinhaltet viele neue Funktionen und Optimierungen wie beispielsweise Named Arguments, Union Types, Attribute, Constructor Property Promotion, Match Ausdrücke, Nullsafe Operator, JIT und Verbesserungen des Typen-Systems, der Fehlerbehandlung und der Konsistenz.',
+ 'upgrade_now' => 'Wechsle jetzt zu PHP 8!',
+
+ 'named_arguments_title' => 'Named Arguments',
+ 'named_arguments_description' => '
Der neue match Ausdruck ist ähnlich wie die switch Anweisung und bietet folgende Funktionen:
break Ausdruck.Error Exception wenn die Typenvalidierung der Parameter fehlschlägt.',
+
+ 'jit_compilation_title' => 'Just-In-Time Compiler',
+ 'jit_compilation_description' => 'PHP 8 führt zwei JIT Compiler Engines ein. Tracing-JIT, der vielversprechendere der beiden, zeigt eine bis zu drei mal bessere Performance in synthetischen Benchmarks und eine 1,5 bis zweifache Verbesserung in einigen speziellen, langlaufenden Anwendungen. Die Performance einer typischen Anwendung ist auf dem Niveau von PHP 7.4.',
+ 'jit_performance_title' => 'Relativer Beitrag des JIT Compilers zur Performance von PHP 8',
+
+ 'type_improvements_title' => 'Verbesserungen am Typen-System und an der Fehlerbehandlung',
+ 'arithmetic_operator_type_checks' => 'Striktere Typen-Checks für arithmetische/bitweise Operatoren',
+ 'abstract_trait_method_validation' => 'Validierung abstrakter Methoden in einem Trait',
+ 'magic_method_signatures' => 'Korrekte Signaturen magischer Funktionen',
+ 'engine_warnings' => 'Neue Klassifizierung von Engine-Warnings',
+ 'lsp_errors' => 'Inkompatiblen Methoden-Signaturen erzeugen einen Fatal Error',
+ 'at_operator_no_longer_silences_fatal_errors' => 'Der @ Operator unterdrückt keine Fatal Errors mehr.',
+ 'inheritance_private_methods' => 'Vererbung mit privaten Methoden',
+ 'mixed_type' => 'mixed Typ',
+ 'static_return_type' => 'static als Rückgabetyp',
+ 'internal_function_types' => 'Typen für interne Funktionen',
+ 'email_thread' => 'E-Mail-Thread',
+ 'opaque_objects_instead_of_resources' => 'Objekte ohne Methoden anstelle des resource Typs für
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, und
+ XML
+ Extension',
+
+ 'other_improvements_title' => 'Weitere Syntax-Anpassungen und Verbesserungen',
+ 'allow_trailing_comma' => 'Erlauben eines abschließenden Kommas in Parameter-Listen RFC
+ und Closure Use Listen RFC.',
+ 'non_capturing_catches' => 'Catches ohne Exception-Variable',
+ 'variable_syntax_tweaks' => 'Anpassungen an der Syntax für Variablen',
+ 'namespaced_names_as_token' => 'Namespaces werden als ein Token ausgewertet',
+ 'throw_expression' => 'throw ist jetzt ein Ausdruck',
+ 'class_name_literal_on_object' => 'Nutzung von ::class auf Objekten',
+
+ 'new_classes_title' => 'Neue Klassen, Interfaces, und Funktionen',
+ 'weak_map_class' => 'Weak Map Klasse',
+ 'stringable_interface' => 'Stringable Interface',
+ 'token_as_object' => 'token_get_all() mit einer Objekt-Implementierung',
+ 'new_dom_apis' => 'Neue APIs für DOM-Traversal and -Manipulation',
+
+ 'footer_title' => 'Bessere Performance, bessere Syntax, optimierte Typsicherheit.',
+ 'footer_description' => '+ Für den direkten Code-Download von PHP 8 schaue bitte auf der Downloads Seite vorbei. + Windows Pakete können auf der PHP für Windows Seite gefunden werden. + Die Liste der Änderungen ist im ChangeLog festgehalten. +
++ Der Migration Guide ist im PHP Manual verfügbar. Lies dort + nach für detaillierte Informationen zu den neuen Funktionen und inkompatiblen Änderungen zu vorherigen PHP + Versionen. +
', +]; diff --git a/releases/8.0/languages/en.php b/releases/8.0/languages/en.php new file mode 100644 index 0000000000..a67b978de6 --- /dev/null +++ b/releases/8.0/languages/en.php @@ -0,0 +1,89 @@ + 'PHP 8.0 is a major update of the PHP language. It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency.', + 'documentation' => 'Doc', + 'main_title' => 'Released!', + 'main_subtitle' => 'PHP 8.0 is a major update of the PHP language.The new match is similar to switch and has the following features:
break statement.null check conditions, you can now use a chain of calls with the new nullsafe operator. When the evaluation of one element in the chain fails, the execution of the entire chain aborts and the entire chain evaluates to null.',
+ 'saner_string_number_comparisons_title' => 'Saner string to number comparisons',
+ 'saner_string_number_comparisons_description' => 'When comparing to a numeric string, PHP 8 uses a number comparison. Otherwise, it converts the number to a string and uses a string comparison.',
+ 'consistent_internal_function_type_errors_title' => 'Consistent type errors for internal functions',
+ 'consistent_internal_function_type_errors_description' => 'Most of the internal functions now throw an Error exception if the validation of the parameters fails.',
+
+ 'jit_compilation_title' => 'Just-In-Time compilation',
+ 'jit_compilation_description' => 'PHP 8 introduces two JIT compilation engines. Tracing JIT, the most promising of the two, shows about 3 times better performance on synthetic benchmarks and 1.5–2 times improvement on some specific long-running applications. Typical application performance is on par with PHP 7.4.',
+ 'jit_performance_title' => 'Relative JIT contribution to PHP 8 performance',
+
+ 'type_improvements_title' => 'Type system and error handling improvements',
+ 'arithmetic_operator_type_checks' => 'Stricter type checks for arithmetic/bitwise operators',
+ 'abstract_trait_method_validation' => 'Abstract trait method validation',
+ 'magic_method_signatures' => 'Correct signatures of magic methods',
+ 'engine_warnings' => 'Reclassified engine warnings',
+ 'lsp_errors' => 'Fatal error for incompatible method signatures',
+ 'at_operator_no_longer_silences_fatal_errors' => 'The @ operator no longer silences fatal errors.',
+ 'inheritance_private_methods' => 'Inheritance with private methods',
+ 'mixed_type' => 'mixed type',
+ 'static_return_type' => 'static return type',
+ 'internal_function_types' => 'Types for internal functions',
+ 'email_thread' => 'Email thread',
+ 'opaque_objects_instead_of_resources' => 'Opaque objects instead of resources for
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, and
+ XML
+ extensions',
+
+ 'other_improvements_title' => 'Other syntax tweaks and improvements',
+ 'allow_trailing_comma' => 'Allow a trailing comma in parameter lists RFC
+ and closure use lists RFC',
+ 'non_capturing_catches' => 'Non-capturing catches',
+ 'variable_syntax_tweaks' => 'Variable Syntax Tweaks',
+ 'namespaced_names_as_token' => 'Treat namespaced names as single token',
+ 'throw_expression' => 'throw is now an expression',
+ 'class_name_literal_on_object' => 'Allow ::class on objects',
+
+ 'new_classes_title' => 'New Classes, Interfaces, and Functions',
+ 'weak_map_class' => 'Weak Map class',
+ 'stringable_interface' => 'Stringable interface',
+ 'new_str_functions' => 'str_contains(),
+ str_starts_with(),
+ str_ends_with()',
+ 'token_as_object' => 'token_get_all() object implementation',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => 'Better performance, better syntax, improved type safety.',
+ 'footer_description' => '+ For source downloads of PHP 8 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. +
', +]; diff --git a/releases/8.0/languages/es.php b/releases/8.0/languages/es.php new file mode 100644 index 0000000000..7947d4e5ac --- /dev/null +++ b/releases/8.0/languages/es.php @@ -0,0 +1,81 @@ + 'PHP 8.0 es una actualización importante del lenguaje php que contiene nuevos recursos y optimizaciones incluyendo argumentos nombrados, tipos de uniones, atributos, promoción de propiedades constructivas, expresiones de equivalencia, operador nullsafe, JIT (traducción dinámica) y también mejoras en el sistema de tipos, manejo de errores y consistencia en general.', + 'documentation' => 'Doc', + 'main_title' => 'Released!', + 'main_subtitle' => 'PHP 8.0 es una actualización importante del lenguaje PHP que contiene nuevos recursos y optimizaciones incluyendo argumentos nombrados, tipos de uniones, atributos, promoción de propiedades constructivas, expresiones match, operador nullsafe, JIT (traducción dinámica) y también mejoras en el sistema de tipos, manejo de errores y consistencia en general.', + 'upgrade_now' => 'Actualizate a PHP 8!', + + 'named_arguments_title' => 'Argumentos nombrados', + 'named_arguments_description' => 'Las nuevas expresiones match son similares a switch y tienen las siguientes características:
break.null.',
+ 'saner_string_number_comparisons_title' => 'Comparaciones inteligentes entre “strings” y números',
+ 'saner_string_number_comparisons_description' => 'Cuando comparas con un “string” numérico, PHP8 usa comparación numérica o de otro caso convierte el número a un "string" y asi los compara.',
+ 'consistent_internal_function_type_errors_title' => 'Errores consistentes para funciones internas.',
+ 'consistent_internal_function_type_errors_description' => 'La mayoría de las funciones internas ahora proveen un Error de excepción si el parámetro no es validado.',
+
+ 'jit_compilation_title' => 'JIT (traducciones dinámicas)',
+ 'jit_compilation_description' => 'PHP8 introduce 2 motores de compilación JIT. Transit JIT, es el más prometedor de los dos y performa 3 veces mejor en benchmarks sintéticos y 1.5-2 mejor en algunas aplicaciones específicas a largo plazo. Performancia de aplicaciones típicas es a la par de las de PHP7.4',
+ 'jit_performance_title' => 'JIT contribuciones al funcionamiento relativo de PHP8',
+
+ 'type_improvements_title' => 'Mejorias en los tipos de sistemas y manejo de errores',
+ 'arithmetic_operator_type_checks' => 'Verificaciones estrictas de operadores aritméticos/bitwise.',
+ 'abstract_trait_method_validation' => 'Validación de métodos con características abstractas',
+ 'magic_method_signatures' => 'Firmas correctas de métodos mágicos',
+ 'engine_warnings' => 'Reclacificamiento de errores fatales',
+ 'lsp_errors' => 'Errores fatales incompatibles con el método de firma',
+ 'at_operator_no_longer_silences_fatal_errors' => 'El operador @ no omitirá errores fatales.',
+ 'inheritance_private_methods' => 'Herencia con métodos privados',
+ 'mixed_type' => 'Tipo mixed',
+ 'static_return_type' => 'Tipo retorno static',
+ 'internal_function_types' => 'Tipos para funciones internas',
+ 'email_thread' => 'Email thread',
+ 'opaque_objects_instead_of_resources' => 'Objetos opacos en ves de recursos para
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter,
+ y XML extensiones',
+
+ 'other_improvements_title' => 'Otros ajustes y mejoras del sintax',
+ 'allow_trailing_comma' => 'Permitir una coma al final de una lista de parámetros RFC
+ y lista de use en closures RFC',
+ 'non_capturing_catches' => 'Catches que no capturan',
+ 'variable_syntax_tweaks' => 'Ajustes al syntax variable',
+ 'namespaced_names_as_token' => 'Tratamiento de nombres de namespace como tokens únicos',
+ 'throw_expression' => 'throw es ahora una expresión',
+ 'class_name_literal_on_object' => 'Permitir ::class on objects',
+
+ 'new_classes_title' => 'Nuevas clases, interfaces y funciones',
+ 'weak_map_class' => 'Weak Map clase',
+ 'token_as_object' => 'token_get_all() Implementación de objeto',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => 'Mejor performancia, mejor syntax, aumentada seguridad de tipos.',
+ 'footer_description' => '+ Para bajar el código fuente de PHP8 visita la página downloads. + Código binario para windows lo puedes encontrar en la página PHP for Windows. + La lista de cambios está disponible en la página ChangeLog. +
++ La guía de migración está disponible en el manual de PHP. + Por favor consultala para una lista detallada de alteraciones cambios y compatibilidad. +
', +]; diff --git a/releases/8.0/languages/fr.php b/releases/8.0/languages/fr.php new file mode 100644 index 0000000000..18adaaeb4a --- /dev/null +++ b/releases/8.0/languages/fr.php @@ -0,0 +1,82 @@ + "PHP 8.0 est une mise à jour majeure du langage PHP. Elle contient beaucoup de nouvelle fonctionnalités et d'optimisations, incluant les arguments nommés, les types d'union, attributs, promotion de propriétés de constructeur, l'expression match, l'opérateur nullsafe, JIT (Compilation à la Volée), et des améliorations dans le système de typage, la gestion d'erreur, et de cohérence.", + 'documentation' => 'Doc', + 'main_title' => 'Released!', + 'main_subtitle' => 'PHP 8.0 est une mise à jour majeure du langage PHP.La nouvelle instruction match est similaire à switch et a les fonctionnalités suivantes :
match supportent uniquement les expressions d\'une seule ligne, et n\'a pas besoin d\'une déclaration break.null, vous pouvez utiliser une chaîne d'appel avec le nouvel opérateur nullsafe. Qui lorsque l'évaluation d'un élément de la chaîne échoue, l'exécution de la chaîne complète est terminée et la chaîne entière évalue à null.",
+ 'saner_string_number_comparisons_title' => 'Comparaisons entre les chaînes de caractères et les nombres plus saines',
+ 'saner_string_number_comparisons_description' => 'Lors de la comparaison avec une chaîne numérique, PHP 8 utilise une comparaison de nombre. Sinon, il convertit le nombre à une chaîne de caractères et utilise une comparaison de chaîne de caractères.',
+ 'consistent_internal_function_type_errors_title' => 'Erreurs de type cohérent pour les fonctions internes',
+ 'consistent_internal_function_type_errors_description' => 'La plupart des fonctions internes lancent désormais une exception Error si la validation du paramètre échoue.',
+
+ 'jit_compilation_title' => 'Compilation Juste-à-Temps (JIT)',
+ 'jit_compilation_description' => "PHP 8 introduit deux moteurs de compilation JIT (juste à temps/compilation à la volée). Le Tracing JIT, le plus prometteur des deux, montre environ 3 fois plus de performances sur des benchmarks synthétiques et 1,5-2 fois plus de performances sur certaines applications à longue durée d'exécution. Généralement les performances des applications sont identiques à PHP 7.4.",
+ 'jit_performance_title' => 'Contribution relative du JIT à la performance de PHP 8',
+
+ 'type_improvements_title' => "Amélioration du système de typage et de la gestion d'erreur",
+ 'arithmetic_operator_type_checks' => 'Vérification de type plus sévère pour les opérateurs arithmétiques et bit à bit',
+ 'abstract_trait_method_validation' => 'Validation de méthode abstraite des traits',
+ 'magic_method_signatures' => 'Signature valide des méthodes magiques',
+ 'engine_warnings' => 'Reclassifications des avertissements du moteur',
+ 'lsp_errors' => 'Erreur fatale pour des signatures de méthodes incompatibles',
+ 'at_operator_no_longer_silences_fatal_errors' => "L'opérateur @ ne silence plus les erreurs fatales.",
+ 'inheritance_private_methods' => 'Héritages avec les méthodes privées',
+ 'mixed_type' => 'Type mixed',
+ 'static_return_type' => 'Type de retour static',
+ 'internal_function_types' => 'Types pour les fonctions internes',
+ 'email_thread' => 'Discussion e-mail',
+ 'opaque_objects_instead_of_resources' => 'Objets opaques au lieu de ressources pour les extensions
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, et
+ XML',
+
+ 'other_improvements_title' => 'Autres ajustements de syntaxe et améliorations',
+ 'allow_trailing_comma' => 'Autorisation des virgules trainantes dans les listes de paramètres RFC
+ et dans les listes des use d\'une fermeture RFC',
+ 'non_capturing_catches' => 'Les catchs non capturant',
+ 'variable_syntax_tweaks' => 'Ajustement de la Syntaxe des Variables',
+ 'namespaced_names_as_token' => 'Traite les noms des espaces de nom comme un seul token',
+ 'throw_expression' => 'throw est désormais une expression',
+ 'class_name_literal_on_object' => 'Autorisation de ::class sur les objets',
+
+ 'new_classes_title' => 'Nouvelles Classes, Interfaces, et Fonctions',
+ 'weak_map_class' => 'Classe Weak Map',
+ 'stringable_interface' => 'Interface Stringable',
+ 'token_as_object' => 'Implémentation objet de token_get_all()',
+ 'new_dom_apis' => 'Nouvelles APIs pour traverser et manipuler le DOM',
+
+ 'footer_title' => 'Meilleures performances, meilleure syntaxe, amélioration de la sécurité de type.',
+ 'footer_description' => '+ Pour le téléchargement des sources de PHP 8 veuillez visiter la page de téléchargement. + Les binaires Windows peuvent être trouvés sur le site de PHP pour Windows. + La liste des changements est notée dans le ChangeLog. +
++ Le guide de migration est disponible dans le manuel PHP. + Veuillez le consulter pour une liste détaillée des nouvelles fonctionnalités et changements non rétrocompatibles. +
', +]; diff --git a/releases/8.0/languages/it.php b/releases/8.0/languages/it.php new file mode 100644 index 0000000000..77d3420e46 --- /dev/null +++ b/releases/8.0/languages/it.php @@ -0,0 +1,82 @@ + 'PHP 8.0 è una nuova versione major del linguaggio PHP. Contiene molte nuove funzionalità ed ottimizzazioni quali i named arguments, la definizione di tipi unione, gli attributi, la promozione a proprietà degli argomenti del costruttore, l\'espressione match, l\'operatore nullsafe, la compilazione JIT e miglioramenti al sistema dei tipi, alla gestione degli errori e alla consistenza.', + 'documentation' => 'Doc', + 'main_title' => 'Released!', + 'main_subtitle' => 'PHP 8.0 è una nuova versione major del linguaggio PHP.La nuova espressione match è simile allo switch e ha le seguenti funzionalità:
match supportano solo espressioni a singola linea e non necessitano di un\'espressione break.null, puoi ora usare una catena di chiamate con il nuovo operatore nullsafe. Quando la valutazione di un elemento della catena fallisce, l'esecuzione della catena si interrompe e l'intera catena restituisce il valore null.",
+ 'saner_string_number_comparisons_title' => 'Comparazioni più coerenti di stringhe e numeri',
+ 'saner_string_number_comparisons_description' => 'Nella comparazione di una stringa numerica, PHP 8 usa la comparazione numerica. Altrimenti, converte il numero in una stringa e usa la comparazione tra stringhe.',
+ 'consistent_internal_function_type_errors_title' => 'Tipi di errori consistenti per le funzioni native',
+ 'consistent_internal_function_type_errors_description' => 'La maggior parte delle funzioni native ora lanciano una eccezione Error se la validazione degli argomenti fallisce.',
+
+ 'jit_compilation_title' => 'Compilazione Just-In-Time',
+ 'jit_compilation_description' => 'PHP 8 intrduce due motori di compilazione JIT. Tracing JIT, il più promettente dei due, mostra delle prestazioni 3 volte superiori nei benchmarks sintetici e 1.5–2 volte superiori per alcuni specifici processi applicativi a lunga esecuzione. Le prestazioni delle tipiche applicazioni web sono al pari con PHP 7.4.',
+ 'jit_performance_title' => 'Miglioramenti delle performance in PHP 8 grazie a JIT',
+
+ 'type_improvements_title' => 'Sistema dei tipi e miglioramenti alla gestione degli errori',
+ 'arithmetic_operator_type_checks' => 'Controlli più stringenti per gli operatori aritmetici e bitwise',
+ 'abstract_trait_method_validation' => 'Validazione dei metodi astratti nei trait',
+ 'magic_method_signatures' => 'Firme corrette nei metodi magici',
+ 'engine_warnings' => 'Riclassificazione degli errori',
+ 'lsp_errors' => 'Errori fatali per firme di metodi non compatibili',
+ 'at_operator_no_longer_silences_fatal_errors' => "L'operatore @ non silenzia più gli errori fatali.",
+ 'inheritance_private_methods' => 'Ereditarietà e metodi privati',
+ 'mixed_type' => 'Tipo mixed',
+ 'static_return_type' => 'Tipo di ritorno static',
+ 'internal_function_types' => 'Tipi per le funzioni native',
+ 'email_thread' => 'Email thread',
+ 'opaque_objects_instead_of_resources' => 'Oggetti opachi invece che risorse per le estensioni
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, e
+ XML',
+
+ 'other_improvements_title' => 'Altre ritocchi e migliorie di sintassi',
+ 'allow_trailing_comma' => 'Permessa una virgola finale nella lista dei parametri RFC
+ e nell\'espressione use per le closure RFC',
+ 'non_capturing_catches' => 'Catch senza argomento',
+ 'variable_syntax_tweaks' => 'Correzioni alla sintassi di variabile',
+ 'namespaced_names_as_token' => 'Trattamento dei nomi di namespace come un singolo token',
+ 'throw_expression' => "throw è ora un'espressione",
+ 'class_name_literal_on_object' => "Permesso l'utilizzo di ::class sugli oggetti",
+
+ 'new_classes_title' => 'Nuove classi, interfacce e funzioni',
+ 'weak_map_class' => 'Classe Weak Map',
+ 'stringable_interface' => 'Interfaccia Stringable',
+ 'token_as_object' => 'Classe PhpToken come alternativa a token_get_all()',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => 'Performance migliorate, migliore sintassi, e migliore sicurezza dei tipi.',
+ 'footer_description' => '+ Per scaricare il codice sorgente visita di PHP 8 visita la pagina di download. + I binari eseguibili per Windows possono essere trovati sul sito PHP for Windows. + Una lista dei cambiamenti è registrata nel ChangeLog. +
++ La guida alla migrazione è disponibile nel manuale PHP. + Consultatelo per una lista completa delle nuove funzionalità e dei cambiamenti non retrocompatibili. +
', +]; diff --git a/releases/8.0/languages/ja.php b/releases/8.0/languages/ja.php new file mode 100644 index 0000000000..aab61bbe99 --- /dev/null +++ b/releases/8.0/languages/ja.php @@ -0,0 +1,83 @@ + 'PHP 8.0 は、PHP 言語のメジャーアップデートです。このアップデートには、たくさんの新機能や最適化が含まれています。たとえば名前付き引数、union 型、アトリビュート、コンストラクタでのプロパティのプロモーション、match 式、 nullsafe 演算子、JIT、型システムの改善、エラーハンドリング、一貫性の向上などです。', + 'documentation' => 'Doc', + 'main_title' => 'Released!', + 'main_subtitle' => 'PHP 8.0 は、PHP 言語のメジャーアップデートです。match は switch 文に似ていますが、以下の機能があります:
match は式なので、結果を返したり、変数に保存したりできます。match の分岐は一行の式だけをサポートしており、break 文は不要です。match は、型と値について、厳密な比較を行います。null チェックの条件を追加する代わりに、nullsafe演算子 を使って呼び出しをチェインさせられるようになりました。呼び出しチェインのひとつが失敗すると、チェインの実行全体が停止し、null と評価されます。',
+ 'saner_string_number_comparisons_title' => '数値と文字列の比較',
+ 'saner_string_number_comparisons_description' => '数値形式の文字列と比較する場合は、PHP 8 は数値として比較を行います。それ以外の場合は、数値を文字列に変換し、文字列として比較を行います。',
+ 'consistent_internal_function_type_errors_title' => '内部関数の型に関するエラーが一貫したものに',
+ 'consistent_internal_function_type_errors_description' => 'ほとんどの内部関数は、引数の検証に失敗すると Error 例外をスローするようになりました。',
+
+ 'jit_compilation_title' => 'JIT (ジャストインタイム) コンパイル',
+ 'jit_compilation_description' => 'PHP 8 は JITコンパイル のエンジンをふたつ搭載しています。トレーシングJITは、もっとも有望なふたつの人工的なベンチマークで、約3倍のパフォーマンスを示しました。また、長期間動いている特定のあるアプリケーションでは、1.5-2倍のパフォーマンス向上が見られました。典型的なアプリケーションのパフォーマンスは、PHP 7.4 と同等でした。',
+ 'jit_performance_title' => 'PHP 8 のパフォーマンスに対するJITの貢献',
+
+ 'type_improvements_title' => '型システムとエラーハンドリングの改善',
+ 'arithmetic_operator_type_checks' => '算術/ビット演算子のより厳密な型チェック',
+ 'abstract_trait_method_validation' => 'トレイトの抽象メソッドの検証',
+ 'magic_method_signatures' => 'マジックメソッドのシグネチャ',
+ 'engine_warnings' => 'エンジンの警告を整理',
+ 'lsp_errors' => '互換性のないメソッドシグネチャは fatal error に。',
+ 'at_operator_no_longer_silences_fatal_errors' => '@ 演算子は、致命的なエラーを隠さなくなりました。',
+ 'inheritance_private_methods' => 'private メソッドの継承時のシグネチャチェック',
+ 'mixed_type' => 'mixed 型のサポート',
+ 'static_return_type' => '戻り値で static 型をサポート',
+ 'internal_function_types' => '内部関数に型アノテーション',
+ 'email_thread' => 'Email thread',
+ 'opaque_objects_instead_of_resources' => '一部の拡張機能が、リソースからオブジェクトに移行:
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter,
+ XML',
+
+ 'other_improvements_title' => 'その他文法の調整や改善',
+ 'allow_trailing_comma' => '引数やクロージャーのuseリストの最後にカンマがつけられるように RFC
+ RFC',
+ 'non_capturing_catches' => 'catch で例外のキャプチャが不要に',
+ 'variable_syntax_tweaks' => '変数の文法の調整',
+ 'namespaced_names_as_token' => '名前空間の名前を単一のトークンとして扱う',
+ 'throw_expression' => 'throw は式になりました',
+ 'class_name_literal_on_object' => 'オブジェクトに対して ::class が使えるように',
+
+ 'new_classes_title' => '新しいクラス、インターフェイス、関数',
+ 'weak_map_class' => 'Weak Map クラス',
+ 'stringable_interface' => 'Stringable インターフェイス',
+ 'token_as_object' => 'token_get_all() をオブジェクトベースで実装',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => 'パフォーマンスの向上、より良い文法、型システムの改善',
+ 'footer_description' => '+ PHP 8 のソースコードのダウンロードは、 + downloads のページをどうぞ。 + Windows 用のバイナリは PHP for Windows のページにあります。 + 変更の一覧は ChangeLog にあります。 +
++ 移行ガイド が PHP マニュアルで利用できます。 + 新機能や下位互換性のない変更の詳細については、移行ガイドを参照して下さい。 +
', +]; diff --git a/releases/8.0/languages/ka.php b/releases/8.0/languages/ka.php new file mode 100644 index 0000000000..de0615c1da --- /dev/null +++ b/releases/8.0/languages/ka.php @@ -0,0 +1,84 @@ + 'PHP 8.0 — PHP ენის დიდი განახლება. ის შეიცავს ბევრ ახალ შესაძლებლობას და ოპტიმიზაციებს, მათ შორის დასახელებული არგუმენტები, union type, ატრიბუტები, თვისებების გამარტივებული განსაზღვრა კონსტრუქტორში, გამოსახულება match, ოპერატორი nullsafe, JIT და გაუმჯობესებები ტიპის სისტემაში, შეცდომების დამუშავება და თანმიმდევრულობა.', + 'documentation' => 'დოკუმენტაცია', + 'main_title' => 'რელიზი!', + 'main_subtitle' => 'PHP 8.0 — PHP ენის დიდი განახლება.ახალი გამოსახულება match, switch ოპერატორის მსგავსია შემდეგი მახასიათებლებით:
match მხარს უჭერერს მხოლოდ ერთსტრიქონიან გამოსახულებებს, რომლებიც არ საჭიროებენ break კონტროლის კონსტრუქციას.match იყენებს მკაცრ შედარებას.Error გამონაკლისს, თუ შეცდომა მოხდა პარამეტრის შემოწმებისას.',
+
+ 'jit_compilation_title' => 'კომპილაცია Just-In-Time',
+ 'jit_compilation_description' => 'PHP 8 წარმოგიდგენთ JIT-კომპილაციის ორ მექანიზმს. JIT ტრასირება, მათგან ყველაზე პერსპექტიულია, სინთეზურ ბენჩმარკზე აჩვენებს მუშაობის გაუმჯობესებას დაახლოებით 3-ჯერ და 1.5-2-ჯერ ზოგიერთ დიდ ხანს მომუშავე აპლიკაციებში. აპლიკაციის სტანდარტული წარმადობა ერთ და იგივე დონეზეა PHP 7.4-თან.',
+ 'jit_performance_title' => 'JIT-ის შედარებითი წვლილი PHP 8-ის წარმადობაში',
+
+ 'type_improvements_title' => 'გაუმჯობესებები ტიპის სისტემაში და შეცდომების დამუშავება',
+ 'arithmetic_operator_type_checks' => 'ტიპის უფრო მკაცრი შემოწმება არითმეტიკული/ბიტიური ოპერატორებისთვის',
+ 'abstract_trait_method_validation' => 'აბსტრაქტული თვისებების მეთოდების შემოწმება',
+ 'magic_method_signatures' => 'ჯადოსნური მეთოდების სწორი სიგნატურები',
+ 'engine_warnings' => 'ძრავის გაფრთხილებების ხელახალი კლასიფიკაცია',
+ 'lsp_errors' => 'ფატალური შეცდომა, როდესაც მეთოდის სიგნატურა შეუთავსებელია',
+ 'at_operator_no_longer_silences_fatal_errors' => '@ ოპერატორი აღარ აჩუმებს ფატალურ შეცდომებს.',
+ 'inheritance_private_methods' => 'მემკვიდრეობა private მეთოდებთან',
+ 'mixed_type' => 'ახალი ტიპი mixed',
+ 'static_return_type' => 'დაბრუნების ტიპი static',
+ 'internal_function_types' => 'ტიპები სტანდარტული ფუნქციებისთვის',
+ 'email_thread' => 'Email თემა',
+ 'opaque_objects_instead_of_resources' => 'გაუმჭვირვალე ობიექტები რესურსების ნაცვლად
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, and
+ XML
+ გაფართოებებისთვის',
+
+ 'other_improvements_title' => 'სინტაქსის სხვა გაუმჯობესება',
+ 'allow_trailing_comma' => 'მძიმე დაშვებულია პარამეტრების სიის ბოლოს RFC
+ და use დამოკლების სიაში RFC',
+ 'non_capturing_catches' => 'ბლოკი catch ცვლადის მითითების გარეშე',
+ 'variable_syntax_tweaks' => 'ცვლადის სინტაქსის ცვლილება',
+ 'namespaced_names_as_token' => 'სახელების სივრცეში სახელები განიხილება, როგორც ერთიამნი ტოკენი',
+ 'throw_expression' => 'გამოსახულება throw',
+ 'class_name_literal_on_object' => 'დამატება ::class ობიექტებისთვის',
+
+ 'new_classes_title' => 'ახალი კლასები, ინტერფეისები და ფუნქციები',
+ 'token_as_object' => 'token_get_all() ობიექტზე-ორიენტირებული ფუნქცია',
+ 'new_dom_apis' => 'ახალი API-ები DOM-ის გადასასვლელად და დასამუშავებლად',
+
+ 'footer_title' => 'უკეთესი წარმადობა, უკეთესი სინტაქსი, უფრო საიმედო ტიპების სისტემა.',
+ 'footer_description' => '+ PHP 8 წყაროს კოდის ჩამოსატვირთად ეწვიეთ ჩამოტვირთვის გვერდს. + Windows-ის ბინარული ფაილები განთავსებულია საიტზე PHP Windows-თვის. + ცვლილებების სია წარმოდგენილია ChangeLog-ში. +
++ მიგრაციის გზამკვლევი ხელმისაწვდომია დოკუმენტაციის განყოფილებაში. გთხოვთ, + შეისწავლოთ იგი ახალი ფუნქციების დეტალური ჩამონათვალის მისაღებად და უკუ შეუთავსებელი ცვლილებებისთვის. +
', +]; diff --git a/releases/8.0/languages/nl.php b/releases/8.0/languages/nl.php new file mode 100644 index 0000000000..af1630978e --- /dev/null +++ b/releases/8.0/languages/nl.php @@ -0,0 +1,81 @@ + 'PHP 8.0 is een omvangrijke update van de PHP programmeertaal. Het bevat veel nieuwe mogelijkheden en optimalisaties, waaronder argument naamgeving, unie types, attributen, promotie van constructor eigenschappen, expressie vergelijking, null-veilige operator, JIT, en verbeteringen aan het type systeem, foute afhandeling, en consistentie.', + 'documentation' => 'Doc', + 'main_title' => 'Beschikbaar!', + 'main_subtitle' => 'PHP 8.0 is een omvangrijke update van de PHP programmeertaal.De nieuwe match is gelijkaardig aan switch en heeft volgende eigenschappen:
break statements.null uit te voeren kan je nu een ketting van oproepen vormen met de null-veilige operator. Wanneer één expressie in de ketting faalt, zal de rest van de ketting niet uitgevoerd worden en is het resultaat van de hele ketting null.',
+ 'saner_string_number_comparisons_title' => 'Verstandigere tekst met nummer vergelijkingen',
+ 'saner_string_number_comparisons_description' => 'Wanneer PHP 8 een vergelijking uitvoert tegen een numerieke tekst zal er een numerieke vergelijking uitgevoerd worden. Anders zal het nummer naar een tekst omgevormd worden en er een tekstuele vergelijking uitgevoerd worden.',
+ 'consistent_internal_function_type_errors_title' => 'Consistente type fouten voor interne functies',
+ 'consistent_internal_function_type_errors_description' => 'De meeste interne functies gooien nu een Error exception als de validatie van parameters faalt.',
+
+ 'jit_compilation_title' => 'Just-In-Time compilatie',
+ 'jit_compilation_description' => 'PHP 8 introduceert twee systemen voor JIT compilatie. De tracerende JIT is veelbelovend en presteert ongeveer 3 keer beter bij synthetische metingen en kan sommige langlopende applicaties 1.5–2 keer verbeteren. Prestaties van typische web applicaties ligt in lijn met PHP 7.4.',
+ 'jit_performance_title' => 'Relatieve JIT bijdrage aan de prestaties van PHP 8',
+
+ 'type_improvements_title' => 'Type systeem en verbeteringen van de fout afhandeling',
+ 'arithmetic_operator_type_checks' => 'Strikte type controles bij rekenkundige/bitsgewijze operatoren',
+ 'abstract_trait_method_validation' => 'Validatie voor abstracte trait methodes',
+ 'magic_method_signatures' => 'Correcte signatures bij magic methods',
+ 'engine_warnings' => 'Herindeling van de engine warnings',
+ 'lsp_errors' => 'Fatal error bij incompatibele method signatures',
+ 'at_operator_no_longer_silences_fatal_errors' => 'De @ operator werkt niet meer bij het onderdrukken van fatale fouten.',
+ 'inheritance_private_methods' => 'Overerving bij private methods',
+ 'mixed_type' => 'mixed type',
+ 'static_return_type' => 'static return type',
+ 'internal_function_types' => 'Types voor interne functies',
+ 'email_thread' => 'Email draadje',
+ 'opaque_objects_instead_of_resources' => 'Opaque objects in plaats van resources voor
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, and
+ XML
+ extensies',
+
+ 'other_improvements_title' => 'Andere syntaxis aanpassingen en verbeteringen',
+ 'allow_trailing_comma' => 'Sta toe om een komma te plaatsen bij het laatste parameter in een lijst RFC
+ en bij de use in closures RFC',
+ 'non_capturing_catches' => 'Catches die niets vangen',
+ 'variable_syntax_tweaks' => 'Variabele Syntaxis Aanpassingen',
+ 'namespaced_names_as_token' => 'Namespaced namen worden als één enkel token afgehandeld',
+ 'throw_expression' => 'throw is nu een expressie',
+ 'class_name_literal_on_object' => '::class werkt bij objecten',
+
+ 'new_classes_title' => 'Nieuwe Classes, Interfaces, en Functies',
+ 'token_as_object' => 'token_get_all() object implementatie',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => 'Betere prestaties, betere syntaxis, verbeterd type systeem.',
+ 'footer_description' => '+ Ga naar de downloads pagina om de PHP 8 code te verkrijgen. + Uitvoerbare bestanden voor Windows kan je vinden op de PHP voor Windows website. + De volledige lijst met wijzigingen is vastgelegd in een ChangeLog. +
++ De migratie gids is beschikbaar in de PHP Handleiding. Gebruik + deze om een gedetailleerde lijst te krijgen van nieuwe opties en neerwaarts incompatibele aanpassingen. +
', +]; diff --git a/releases/8.0/languages/pt_BR.php b/releases/8.0/languages/pt_BR.php new file mode 100644 index 0000000000..4af6ac2049 --- /dev/null +++ b/releases/8.0/languages/pt_BR.php @@ -0,0 +1,88 @@ + 'PHP 8.0 é uma atualização importante da linguagem PHP. Ela contém muitos novos recursos e otimizações, incluindo argumentos nomeados, união de tipos, atributos, promoção de propriedade do construtor, expressão match, operador nullsafe, JIT e melhorias no sistema de tipos, tratamento de erros e consistência.', + 'documentation' => 'Doc', + 'main_title' => 'Released!', + 'main_subtitle' => 'PHP 8.0 é uma atualização importante da linguagem PHP.A nova expressão match é semelhante ao switch e tem os seguintes recursos:
break.Error se a validação do parâmetro falhar.',
+
+ 'jit_compilation_title' => 'Compilação Just-In-Time',
+ 'jit_compilation_description' => 'PHP 8 apresenta dois motores de compilação JIT. Tracing JIT, o mais promissor dos dois, mostra desempenho cerca de 3 vezes melhor em benchmarks sintéticos e melhoria de 1,5 a 2 vezes em alguns aplicativos específicos de longa execução. O desempenho típico das aplicações está no mesmo nível do PHP 7.4.',
+ 'jit_performance_title' => 'Relative JIT contribution to PHP 8 performance',
+
+ 'type_improvements_title' => 'Melhorias no sistema de tipo e tratamento de erros',
+ 'arithmetic_operator_type_checks' => 'Verificações de tipo mais rígidas para operadores aritméticos / bit a bit',
+ 'abstract_trait_method_validation' => 'Validação de método abstrato em traits',
+ 'magic_method_signatures' => 'Assinaturas corretas de métodos mágicos',
+ 'engine_warnings' => 'Avisos de motor reclassificados',
+ 'lsp_errors' => 'Erro fatal para assinaturas de método incompatíveis',
+ 'at_operator_no_longer_silences_fatal_errors' => 'O operador @ não silencia mais os erros fatais.',
+ 'inheritance_private_methods' => 'Herança com métodos privados',
+ 'mixed_type' => 'Tipo mixed',
+ 'static_return_type' => 'Tipo de retorno static',
+ 'internal_function_types' => 'Tipagem de funções internas',
+ 'email_thread' => 'Discussão por email',
+ 'opaque_objects_instead_of_resources' => 'Objetos opacos em vez de recursos para
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, e
+ XML
+ extensões',
+
+ 'other_improvements_title' => 'Outros ajustes e melhorias de sintaxe',
+ 'allow_trailing_comma' => 'Permitir vírgula no final da lista de parâmetros RFC
+ e listas de uso em closures RFC',
+ 'non_capturing_catches' => 'Catches sem variável na captura de exceção',
+ 'variable_syntax_tweaks' => 'Ajustes de sintaxe para variáveis',
+ 'namespaced_names_as_token' => 'Tratamento de nomes de namespace como token único',
+ 'throw_expression' => 'throw como expressão',
+ 'class_name_literal_on_object' => 'Permitir ::class em objetos',
+
+ 'new_classes_title' => 'Novas classes, interfaces e funções',
+ 'weak_map_class' => 'Classe Weak Map',
+ 'stringable_interface' => 'Interface Stringable',
+ 'token_as_object' => 'token_get_all() implementado com objetos',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => 'Obtenha melhoria de desempenho gratuita.+ Para downloads do código-fonte do PHP 8, visite a página de + downloads. + Os binários do Windows podem ser encontrados na página PHP para + Windows. + A lista de mudanças é registrada no ChangeLog. +
++ O guia de migração está disponível no Manual do PHP. + Consulte-o para obter uma lista detalhada de novos recursos e alterações incompatíveis com versões anteriores. +
', +]; diff --git a/releases/8.0/languages/ru.php b/releases/8.0/languages/ru.php new file mode 100644 index 0000000000..17acb1cd2d --- /dev/null +++ b/releases/8.0/languages/ru.php @@ -0,0 +1,86 @@ + 'PHP 8.0 — большое обновление языка PHP. Оно содержит множество новых возможностей и оптимизаций, включая именованные аргументы, тип union, атрибуты, упрощённое определение свойств в конструкторе, выражение match, оператор nullsafe, JIT и улучшения в системе типов, обработке ошибок и консистентности.', + 'documentation' => 'Документация', + 'main_title' => 'доступен!', + 'main_subtitle' => 'PHP 8.0 — большое обновление языка PHP.Новое выражение match похоже на оператор switch со следующими особенностями:
break.null вы можете использовать последовательность вызовов с новым оператором Nullsafe. Когда один из элементов в последовательности возвращает null, выполнение прерывается и вся последовательность возвращает null.',
+ 'saner_string_number_comparisons_title' => 'Улучшенное сравнение строк и чисел',
+ 'saner_string_number_comparisons_description' => 'При сравнении с числовой строкой PHP 8 использует сравнение чисел. В противном случае число преобразуется в строку и используется сравнение строк.',
+ 'consistent_internal_function_type_errors_title' => 'Ошибки согласованности типов для встроенных функций',
+ 'consistent_internal_function_type_errors_description' => 'Большинство внутренних функций теперь выбрасывают исключение Error, если при проверке параметра возникает ошибка.',
+
+ 'jit_compilation_title' => 'Компиляция Just-In-Time',
+ 'jit_compilation_description' => 'PHP 8 представляет два механизма JIT-компиляции. Трассировка JIT, наиболее перспективная из них, на синтетических бенчмарках показывает улучшение производительности примерно в 3 раза и в 1,5–2 раза на некоторых долго работающих приложениях. Стандартная производительность приложения находится на одном уровне с PHP 7.4.',
+ 'jit_performance_title' => 'Относительный вклад JIT в производительность PHP 8',
+
+ 'type_improvements_title' => 'Улучшения в системе типов и обработке ошибок',
+ 'arithmetic_operator_type_checks' => 'Более строгие проверки типов для арифметических/побитовых операторов',
+ 'abstract_trait_method_validation' => 'Проверка методов абстрактных трейтов',
+ 'magic_method_signatures' => 'Правильные сигнатуры магических методов',
+ 'engine_warnings' => 'Реклассификация предупреждений движка',
+ 'lsp_errors' => 'Фатальная ошибка при несовместимости сигнатур методов',
+ 'at_operator_no_longer_silences_fatal_errors' => 'Оператор @ больше не подавляет фатальные ошибки.',
+ 'inheritance_private_methods' => 'Наследование с private методами',
+ 'mixed_type' => 'Новый тип mixed',
+ 'static_return_type' => 'Возвращаемый тип static',
+ 'internal_function_types' => 'Типы для стандартных функций',
+ 'email_thread' => 'E-mail Тема',
+ 'opaque_objects_instead_of_resources' => 'Непрозрачные объекты вместо ресурсов для
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter, e
+ XML
+ расширения',
+
+ 'other_improvements_title' => 'Прочие улучшения синтаксиса',
+ 'allow_trailing_comma' => 'Разрешена запятая в конце списка параметров RFC
+ и в списке use замыканий RFC',
+ 'non_capturing_catches' => 'Блок catch без указания переменной',
+ 'variable_syntax_tweaks' => 'Изменения синтаксиса переменных',
+ 'namespaced_names_as_token' => 'Имена в пространстве имен рассматриваются как единый токен',
+ 'throw_expression' => 'Выражение throw',
+ 'class_name_literal_on_object' => 'Добавление ::class для объектов',
+
+ 'new_classes_title' => 'Новые классы, интерфейсы и функции',
+ 'weak_map_class' => 'Класс Weak Map',
+ 'stringable_interface' => 'Интерфейс Stringable',
+ 'token_as_object' => 'Объектно-ориентированная функция token_get_all()',
+ 'new_dom_apis' => 'Новые API для обходения и обработки DOM',
+
+ 'footer_title' => 'Выше производительность, лучше синтаксис, надежнее система типов.',
+ 'footer_description' => '+ Для загрузки исходного кода PHP 8 посетите страницу downloads. + Бинарные файлы Windows находятся на сайте PHP для Windows. + Список изменений представлен в ChangeLog. +
++ Руководство по миграции доступно в разделе документации. Пожалуйста, + изучите его для получения подробного списка новых возможностей и обратно несовместимых изменений. +
', +]; diff --git a/releases/8.0/languages/tr.php b/releases/8.0/languages/tr.php new file mode 100644 index 0000000000..d6c67e9116 --- /dev/null +++ b/releases/8.0/languages/tr.php @@ -0,0 +1,85 @@ + 'PHP 8.0, PHP dili için önemli bir güncellemedir. Optimizasyonlar ve yeni özellikler: Adlandırılmış Değişkenler, Union Types, Attributes, Kurucularda Özellik Tanımı, Match İfadesi, Nullsafe Operatorü, JIT(Anında Derleme) yanında tip sistemi, hata işleme ve tutarlılıkta iyileştirmeler içerir.', + 'documentation' => 'Doc', + 'main_title' => 'Yayında!', + 'main_subtitle' => 'PHP 8.0, PHP dili için önemli bir güncellemedir.Yeni match ifadesi switch\'e çok benzer ve aşağıdaki özelliklere sahiptir:
break kullanılması gerekmez.Error exception fırlatıyorlar.',
+
+ 'jit_compilation_title' => 'Just-In-Time Derlemesi (JIT)',
+ 'jit_compilation_description' => 'PHP 8, iki JIT derleme motoru sunuyor. Tracing JIT, ikisi arasında en yetenekli olanı. Karşılaştırmalarda yaklaşık 3 kat daha iyi performans ve uzun süre işlem yapan bazı uygulamalarda 1,5–2 kat iyileşme gösteriyor. Normal uygulamalarda performansı PHP 7.4 ile aynı.',
+ 'jit_performance_title' => 'PHP 8 performasına JIT katkısının karşılaştırması',
+
+ 'type_improvements_title' => 'Tip sistemi ve hata işlemede iyileştirmeler',
+ 'arithmetic_operator_type_checks' => 'Aritmetik/bitsel operatörler için daha katı tip denetimi',
+ 'abstract_trait_method_validation' => 'Soyut özellikli metodlar için doğrulama',
+ 'magic_method_signatures' => 'Sihirli metodlar için doğru işaretlemeler',
+ 'engine_warnings' => 'Yeniden sınıflandırılan motor hataları',
+ 'lsp_errors' => 'Uyumsuz metod işaretleri için fatal error',
+ 'at_operator_no_longer_silences_fatal_errors' => '@ operatörü artık önemli hataları susturmuyor',
+ 'inheritance_private_methods' => 'Private methodlarda kalıtımlar',
+ 'mixed_type' => 'mixed tipi',
+ 'static_return_type' => 'static return tipi',
+ 'internal_function_types' => 'Dahili işlevler için tip açıklamaları',
+ 'email_thread' => 'E-posta konusu',
+ 'opaque_objects_instead_of_resources' => 'Eklentiler için özkaynak türleri(resources) yerine opak nesneler:
+ Curl,
+ Gd,
+ Sockets,
+ OpenSSL,
+ XMLWriter ve
+ XML.',
+
+ 'other_improvements_title' => 'Diğer PHP sözdizimi düzenlemeleri ve iyileştirmeleri',
+ 'allow_trailing_comma' => 'Parametre ve closure listelerinin sonunda virgül kullanılabilmesi RFC
+ RFC',
+ 'non_capturing_catches' => 'Değişken atamasına gerek olmayan hataların yakalanabilmesi',
+ 'variable_syntax_tweaks' => 'Değişken sözdizimlerinde iyileştirmeler',
+ 'namespaced_names_as_token' => 'İsim alanındaki tanımları tek bir belirteç olarak değerlendirme',
+ 'throw_expression' => 'throw deyimi artık bir ifade (expression)',
+ 'class_name_literal_on_object' => 'Nesnelerde ::class kullanılabilmesi',
+
+ 'new_classes_title' => 'Yeni Sınıflar, Arayüzler ve Fonksiyonlar',
+ 'weak_map_class' => 'Weak Map sınıfı',
+ 'stringable_interface' => 'Stringable arayüzü',
+ 'new_str_functions' => 'str_contains(),
+ str_starts_with(),
+ str_ends_with() fonksiyonları',
+ 'token_as_object' => 'token_get_all() nesne implementasyonu',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => 'Daha iyi performans, daha iyi sözdizimi, geliştirilmiş tip desteği.',
+ 'footer_description' => '+ PHP 8\'i indirmek için downloads sayfasını ziyaret edebilirsiniz. + Windows için derlenmiş sürümüne PHP for Windows sayfasından ulaşabilirsiniz. + Değişiklikler için ChangeLog\'a göz atabilirsiniz. +
++ PHP Kılavuzundan PHP 8 için Göç Belgelerine ulaşabilirsiniz. + Yeni özellikler ve geriye dönük uyumluluğu etkileyecek değişikliklerin ayrıntılı listesi için göç belgesini inceleyiniz. +
', +]; diff --git a/releases/8.0/languages/zh.php b/releases/8.0/languages/zh.php new file mode 100644 index 0000000000..9fa1a8aa7d --- /dev/null +++ b/releases/8.0/languages/zh.php @@ -0,0 +1,86 @@ + 'PHP 8.0 是 PHP 语言的一次重大更新。它包含了很多新功能与优化项,包括命名参数、联合类型、注解、构造器属性提升、match 表达式、Nullsafe 运算符、JIT,并改进了类型系统、错误处理、语法一致性。', + 'documentation' => '文档', + 'main_title' => '已发布!', + 'main_subtitle' => 'PHP 8.0 是 PHP 语言的一次重大更新。新的 match 类似于 switch,并具有以下功能:
break 语句。Error 级异常。',
+
+ 'jit_compilation_title' => '即时编译',
+ 'jit_compilation_description' => 'PHP 8 引入了两个即时编译引擎。 Tracing JIT 在两个中更有潜力,它在综合基准测试中显示了三倍的性能,并在某些长时间运行的程序中显示了 1.5-2 倍的性能改进。典型的应用性能则和 PHP 7.4 不相上下。',
+ 'jit_performance_title' => '关于 JIT 对 PHP 8 性能的贡献',
+
+ 'type_improvements_title' => '类型系统与错误处理的改进',
+ 'arithmetic_operator_type_checks' => '算术/位运算符更严格的类型检测',
+ 'abstract_trait_method_validation' => 'Abstract trait 方法的验证',
+ 'magic_method_signatures' => '确保魔术方法签名正确',
+ 'engine_warnings' => 'PHP 引擎 warning 警告的重新分类',
+ 'lsp_errors' => '不兼容的方法签名导致 Fatal 错误',
+ 'at_operator_no_longer_silences_fatal_errors' => '操作符 @ 不再抑制 fatal 错误。',
+ 'inheritance_private_methods' => '私有方法继承',
+ 'mixed_type' => 'mixed 类型',
+ 'static_return_type' => 'static 返回类型',
+ 'internal_function_types' => '内部函数的类型',
+ 'email_thread' => 'Email thread',
+ 'opaque_objects_instead_of_resources' => '扩展
+ Curl、
+ Gd、
+ Sockets、
+ OpenSSL、
+ XMLWriter、
+ XML
+ 以 Opaque 对象替换 resource。',
+
+ 'other_improvements_title' => '其他语法调整和改进',
+ 'allow_trailing_comma' => '允许参数列表中的末尾逗号 RFC、
+ 闭包 use 列表中的末尾逗号 RFC',
+ 'non_capturing_catches' => '无变量捕获的 catch',
+ 'variable_syntax_tweaks' => '变量语法的调整',
+ 'namespaced_names_as_token' => 'Namespace 名称作为单个 token',
+ 'throw_expression' => '现在 throw 是一个表达式',
+ 'class_name_literal_on_object' => '允许对象的 ::class',
+
+ 'new_classes_title' => '新的类、接口、函数',
+ 'weak_map_class' => 'Weak Map 类',
+ 'stringable_interface' => 'Stringable 接口',
+ 'new_str_functions' => 'str_contains()、
+ str_starts_with()、
+ str_ends_with()',
+ 'token_as_object' => 'token_get_all() 对象实现',
+ 'new_dom_apis' => 'New DOM Traversal and Manipulation APIs',
+
+ 'footer_title' => '性能更好,语法更好,类型安全更完善',
+ 'footer_description' => '+ 请访问 下载 页面下载 PHP 8 源代码。 + 在 PHP for Windows 站点中可找到 Windows 二进制文件。 + ChangeLog 中有变更历史记录清单。 +
++ PHP 手册中有 迁移指南。 + 请参考它描述的新功能详细清单、向后不兼容的变化。 +
', +]; diff --git a/releases/8.0/nl.php b/releases/8.0/nl.php index e4d2177f18..1a972eecb8 100644 --- a/releases/8.0/nl.php +++ b/releases/8.0/nl.php @@ -1,506 +1,6 @@ -In plaats van met PHPDoc annotaties kan je nu gestructureerde metadata gebruiken in PHP's eigen syntaxis.
-Minder standaardcode nodig om eigenschappen te definiëren en initialiseren.
-In plaats van met PHPDoc annotaties kan je de mogelijke types via unie types declareren zodat - deze ook gevalideerd worden tijdens de runtime.
-De nieuwe match is gelijkaardig aan switch en heeft volgende eigenschappen:
-In plaats van een controle op null uit te voeren kan je nu een ketting van oproepen vormen met de null-veilige operator. - Wanneer één expressie in de ketting faalt, zal de rest van de ketting niet uitgevoerd worden en is het resultaat van - de hele ketting null.
-Wanneer PHP 8 een vergelijking uitvoert tegen een numerieke tekst zal er een numerieke vergelijking uitgevoerd - worden. Anders zal het nummer naar een tekst omgevormd worden en er een tekstuele vergelijking uitgevoerd worden.
-De meeste interne functies gooien nu een Error exception als de validatie van parameters faalt.
-- PHP 8 introduceert twee systemen voor JIT compilatie. De tracerende JIT is veelbelovend en presteert ongeveer 3 keer beter - bij synthetische metingen en kan sommige langlopende applicaties 1.5–2 keer verbeteren. Prestaties van typische web applicaties - ligt in lijn met PHP 7.4. -
-
-
-
Em vez de anotações PHPDoc, agora você pode usar metadados estruturados com a sintaxe nativa do PHP.
-Menos código boilerplate para definir e inicializar propriedades.
-Em vez de anotações PHPDoc para uma combinação de tipos, você pode usar declarações de união de tipos nativa - que são validados em tempo de execução.
-A nova expressão match é semelhante ao switch e tem os seguintes recursos:
-Em vez de verificar condições nulas, agora você pode usar uma cadeia de chamadas com o novo operador nullsafe. - Quando a avaliação de um elemento da cadeia falha, a execução de toda a cadeia é abortada e toda a cadeia é - avaliada como nula.
-Ao comparar com uma string numérica, o PHP 8 usa uma comparação numérica. Caso contrário, ele converte o - número em uma string e usa uma comparação de string.
-A maioria das funções internas agora lançam uma exceção Error se a validação do parâmetro falhar.
-- PHP 8 apresenta dois motores de compilação JIT. Tracing JIT, o mais promissor dos dois, mostra desempenho cerca de - 3 vezes melhor em benchmarks sintéticos e melhoria de 1,5 a 2 vezes em alguns aplicativos específicos de longa - execução. O desempenho típico das aplicações está no mesmo nível do PHP 7.4. -
-
-
-
= message('attributes_description', $lang) ?>
+= message('constructor_promotion_description', $lang) ?>
+= message('union_types_description', $lang) ?>
+= message('nullsafe_operator_description', $lang) ?>
+= message('saner_string_number_comparisons_description', $lang) ?>
+= message('consistent_internal_function_type_errors_description', $lang) ?>
+= message('jit_compilation_description', $lang) ?>
+Вместо аннотаций PHPDoc вы можете использовать структурные метаданные с нативным синтаксисом PHP.
-Меньше шаблонного кода для определения и инициализации свойств.
-Вместо аннотаций PHPDoc для объединённых типов вы можете использовать объявления типа union, которые - проверяются во время выполнения.
-Новое выражение match похоже на оператор switch со следующими особенностями:
-Вместо проверки на null вы можете использовать последовательность вызовов с новым оператором Nullsafe. Когда - один из элементов в последовательности возвращает null, выполнение прерывается и вся последовательность - возвращает null.
-При сравнении с числовой строкой PHP 8 использует сравнение чисел. В противном случае число преобразуется в - строку и используется сравнение строк.
-Большинство внутренних функций теперь выбрасывают исключение Error, если при проверке параметра возникает ошибка.
-- PHP 8 представляет два механизма JIT-компиляции. Трассировка JIT, наиболее перспективная из них, на синтетических бенчмарках показывает - улучшение производительности примерно в 3 раза и в 1,5–2 раза на некоторых долго работающих приложениях. Стандартная - производительность приложения находится на одном уровне с PHP 7.4. -
-
-
-
PHPDoc yorum satırları yerine PHP sözdizimi ile yapılandırılmış metadata kullanılabiliyor.
-Sınıfların özelliklerini tanımlamak için daha az kodlama yapılabiliyor.
-Değişken türlerinin kombinasyonu için PHPDoc açıklamaları yerine çalışma zamanında doğrulanan - birleşim türleri (union types) tanımlamaları kullanılabiliyor.
-Yeni match ifadesi switch'e çok benzer ve aşağıdaki özelliklere sahiptir:
-Null koşulları için kontroller yazmak yerine yeni Nullsafe operatörüyle çağrı zinciri - oluşturabilirsiniz. Oluşturduğunuz zincirdeki herhangi bir parça hatalı - değerlendirilirse tüm zincirin işlevi durur ve null olarak değerlendirilir.
-Sayısal string karşılaştırılırken PHP 8 sayısal olarak karşılaştırır. Aksi halde sayı bir - string'e çevrilir ve string olarak karşılaştırılır.
-Artık dahili işlevlere gönderilen parametreler doğrulanamazsa Error exception fırlatıyorlar.
-- PHP 8, iki JIT derleme motoru sunuyor. Tracing JIT, ikisi arasında en yetenekli olanı. Karşılaştırmalarda - yaklaşık 3 kat daha iyi performans ve uzun süre işlem yapan bazı uygulamalarda 1,5–2 kat iyileşme gösteriyor. - Normal uygulamalarda performansı PHP 7.4 ile aynı. -
-
-
-
现在可以用 PHP 原生语法来使用结构化的元数据,而非 PHPDoc 声明。
-更少的样板代码来定义并初始化属性。
-相较于以前的 PHPDoc 声明类型的组合, - 现在可以用原生支持的联合类型声明取而代之,并在运行时得到校验。
-新的 match 类似于 switch,并具有以下功能:
-现在可以用新的 nullsafe 运算符链式调用,而不需要条件检查 null。 - 如果链条中的一个元素失败了,整个链条会中止并认定为 Null。
-PHP 8 比较数字字符串(numeric string)时,会按数字进行比较。 - 不是数字字符串时,将数字转化为字符串,按字符串比较。
-现在大多数内部函数在参数验证失败时抛出 Error 级异常。
-- PHP 8 引入了两个即时编译引擎。 - Tracing JIT 在两个中更有潜力,它在综合基准测试中显示了三倍的性能, - 并在某些长时间运行的程序中显示了 1.5-2 倍的性能改进。 - 典型的应用性能则和 PHP 7.4 不相上下。 -
-
-
-