svn: /phpdoc/de/trunk/ language/control-structures/while.xml language/functions.xml reference/json/functions/json-encode.xml reference/pgsql/functions/pg-fetch-array.xml reference/pspell/functions/pspell-config-create.xml reference/strings/functions/chr.xml

[email protected] (Christoph Michael Becker)
Newsgroups php.doc.de
Message-ID <[email protected]>
cmb                                      Sun, 10 May 2020 12:54:34 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=349769

Log:
Sync with EN

Changed paths:
    U   phpdoc/de/trunk/language/control-structures/while.xml
    U   phpdoc/de/trunk/language/functions.xml
    U   phpdoc/de/trunk/reference/json/functions/json-encode.xml
    U   phpdoc/de/trunk/reference/pgsql/functions/pg-fetch-array.xml
    U   phpdoc/de/trunk/reference/pspell/functions/pspell-config-create.xml
    U   phpdoc/de/trunk/reference/strings/functions/chr.xml
svn-diffs-349769.txt (text/x-diff, 11.1 KB)
Modified: phpdoc/de/trunk/language/control-structures/while.xml
===================================================================
--- phpdoc/de/trunk/language/control-structures/while.xml	2020-05-10 12:13:48 UTC (rev 349768)
+++ phpdoc/de/trunk/language/control-structures/while.xml	2020-05-10 12:54:34 UTC (rev 349769)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 312947 Maintainer: nikic Status: ready -->
+<!-- EN-Revision: 349746 Maintainer: nikic Status: ready -->

 <sect1 xml:id="control-structures.while" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title><literal>while</literal></title>

Modified: phpdoc/de/trunk/language/functions.xml
===================================================================
--- phpdoc/de/trunk/language/functions.xml	2020-05-10 12:13:48 UTC (rev 349768)
+++ phpdoc/de/trunk/language/functions.xml	2020-05-10 12:54:34 UTC (rev 349769)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 349655 Maintainer: cmb Status: in progress -->
+<!-- EN-Revision: 349700 Maintainer: cmb Status: in progress -->
 <!-- Credits: hholzgra, tom, updated to fix build by theseer -->

  <chapter xml:id="language.functions" xmlns="http://docbook.org/ns/docbook">
@@ -1772,38 +1772,38 @@
   </sect1>

   <sect1 xml:id="functions.arrow">
-   <title>Arrow Functions</title>
+   <title>Pfeilfunktionen</title>

    <simpara>
-    Arrow functions were introduced in PHP 7.4 as a more concise syntax for
-    <link linkend="functions.anonymous">anonymous functions</link>.
+    Pfeilfunktionen wurden in PHP 7.4 als prägnantere Syntax für
+    <link linkend="functions.anonymous">anonyme Funktionen</link> eingeführt.
    </simpara>
    <simpara>
-    Both anonymous functions and arrow functions are implemented using the
-    <link linkend="class.closure"><classname>Closure</classname></link> class.
+    Sowohl anonyme Funktionen wie Pfeilfunktionen sind unter Verwendung der
+    <link linkend="class.closure"><classname>Closure</classname></link>-Klasse implementiert.
    </simpara>

    <simpara>
-    Arrow functions have the basic form
+    Pfeilfunktionen haben die grundsätzliche Form
     <code>fn (argument_list) =&gt; expr</code>.
    </simpara>

    <simpara>
-    Arrow functions support the same features as
-    <link linkend="functions.anonymous">anonymous functions</link>,
-    except that using variables from the parent scope is always automatic.
+    Pfeilfunktionen unterstützen dieselben Features wie
+    <link linkend="functions.anonymous">anonyme Funktionen</link>,
+    außer, dass die Verwendung von Variablen des Elterngültigkeitsbereichs immer automatisch erfolgt.
    </simpara>

    <simpara>
-    When a variable used in the expression is defined in the parent scope
-    it will be implicitly captured by-value.
-    In the following example, the functions <varname>$fn1</varname> and
-    <varname>$fn2</varname> behave the same way.
+    Wenn eine Variable, die im Ausdruck verwendet wird, im Elterngültigkeitsbereich
+    definiert ist, wird sie implizit per Wertübergabe gebunden.
+    Im folgenden Beispiel verhalten sich die Funktionen <varname>$fn1</varname> und
+    <varname>$fn2</varname> auf die gleiche Weise.
    </simpara>

    <para>
     <example>
-     <title>Arrow functions capture variables by value automatically</title>
+     <title>Pfeilfunktionen binden Variablen automatisch per Wertübergabe</title>
      <programlisting role="php">
 <![CDATA[
 <?php
@@ -1811,7 +1811,7 @@
 $y = 1;

 $fn1 = fn($x) => $x + $y;
-// equivalent to using $y by value:
+// gleichwertig zur Verwendung von $y per Wertübergabe:
 $fn2 = function ($x) use ($y) {
     return $x + $y;
 };
@@ -1829,11 +1829,11 @@
     </example>
    </para>
    <simpara>
-    This also works if the arrow functions are nested:
+    Die funktioniert ebenfalls, wenn Pfeilfunktionen verschachtelt werden:
    </simpara>
    <para>
     <example>
-     <title>Arrow functions capture variables by value automatically, even when nested</title>
+     <title>Pfeilfunktionen binden Variablen automatisch per Wertübergabe, selbst wenn sie verschachtelt sind</title>
      <programlisting role="php">
 <![CDATA[
 <?php
@@ -1840,7 +1840,7 @@

 $z = 1;
 $fn = fn($x) => fn($y) => $x * $y + $z;
-// Outputs 51
+// gibt 51 aus
 var_export($fn(5)(10));
 ?>
 ]]>
@@ -1848,15 +1848,14 @@
     </example>
    </para>
    <simpara>
-    Similarly to anonymous functions,
-    the arrow function syntax allows arbitrary function signatures,
-    including parameter and return types, default values, variadics,
-    as well as by-reference passing and returning.
-    All of the following are valid examples of arrow functions:
+    Ähnlich wie bei anonymen Funktion, erlaubt die Pfeilfunktionssyntax beliebige Funktionssignaturen,
+    einschließlich Parameter- und Rückgabetypen, Defaultwerten, variadischen Parametern,
+    sowie Referenzübergabe und -rückgabe.
+    Alle folgenden sind gültige Beispiele von Pfeilfunktionen:
    </simpara>
    <para>
     <example>
-     <title>Examples of arrow functions</title>
+     <title>Beispiele von Pfeilfunktionen</title>
      <programlisting role="php">
 <![CDATA[
 <?php
@@ -1874,25 +1873,25 @@
     </example>
    </para>
    <simpara>
-    Arrow functions use by-value variable binding.
-    This is roughly equivalent to performing a <code>use($x)</code> for every
-    variable <varname>$x</varname> used inside the arrow function.
-    A by-value binding means that it is not possible to modify any values
-    from the outer scope.
-    <link linkend="functions.anonymous">Anonymous functions</link>
-    can be used instead for by-ref bindings.
+    Pfeilfunktionen verwenden Wertübergabe-Bindung.
+    Dies entspricht in etwa der Verwendung von <code>use($x)</code> für jede Variable
+    <varname>$x</varname>, die in der Pfeilfunktion verwendet wird.
+    Wertübergabe-Bindung bedeutet, dass es nicht möglich ist Werte aus dem äußeren
+    Geltungsbereich zu ändern.
+    <link linkend="functions.anonymous">Anonyme Funktionen</link> können statt dessen
+    für Referenzübergabe-Bindungen verwendet werden.
    </simpara>
    <para>
     <example>
-     <title>Values from the outer scope cannot be modified by arrow functions</title>
+     <title>Werte aus dem äußeren Geltungsbereich können nicht durch Pfeilfunktionen geändert werden</title>
      <programlisting role="php">
 <![CDATA[
 <?php

 $x = 1;
-$fn = fn() => $x++; // Has no effect
+$fn = fn() => $x++; // hat keine Wirkung
 $fn();
-var_export($x);  // Outputs 1
+var_export($x);  // gibt 1 aus

 ?>
 ]]>
@@ -1915,7 +1914,7 @@
         <row>
          <entry>7.4.0</entry>
          <entry>
-          Arrow functions became available.
+          Pfeilfunktionen sind verfügbar.
          </entry>
         </row>
        </tbody>
@@ -1928,9 +1927,9 @@
     &reftitle.notes;
     <note>
      <simpara>
-      It is possible to use <function>func_num_args</function>,
-      <function>func_get_arg</function>, and <function>func_get_args</function>
-      from within an arrow function.
+      Es ist möglich <function>func_num_args</function>,
+      <function>func_get_arg</function> und <function>func_get_args</function>
+      innerhalb einer Pfeilfunktion zu verwenden.
      </simpara>
     </note>
    </sect2>

Modified: phpdoc/de/trunk/reference/json/functions/json-encode.xml
===================================================================
--- phpdoc/de/trunk/reference/json/functions/json-encode.xml	2020-05-10 12:13:48 UTC (rev 349768)
+++ phpdoc/de/trunk/reference/json/functions/json-encode.xml	2020-05-10 12:54:34 UTC (rev 349769)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 347351 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 349754 Maintainer: simp Status: ready -->
 <!-- Credits: sammywg -->

 <refentry xml:id="function.json-encode" xmlns="http://docbook.org/ns/docbook">
@@ -147,6 +147,24 @@
       <row>
        <entry>5.5.0</entry>
        <entry>
+        Löst <parameter>value</parameter> einen JSON-Kodierfehler aus,
+        wird &false; anstatt einer partiellen Ausgabe zurückgegeben,
+        es sei denn <parameter>options</parameter> enthält <constant>JSON_PARTIAL_OUTPUT_ON_ERROR</constant>.
+        Die vollständige Liste von Gründen für das Fehlschlagen der JSON-Kodierung,
+        kann der <function>json_last_error</function> Dokumentation entnommen werden.
+        Eine der potentiellen Fehlergründe ist, dass <parameter>value</parameter>
+        eine Zeichenkette mit ungültigem UTF-8 enthält.
+       </entry>
+      </row>
+      <row>
+       <entry>5.5.0</entry>
+       <entry>
+        <constant>E_WARNING</constant> is no longer emitted for an invalid <parameter>value</parameter>.
+       </entry>
+      </row>
+      <row>
+       <entry>5.5.0</entry>
+       <entry>
         Der Rückgabewert im Fehlerfall wurde von der <literal>null</literal>
         Zeichenkette zu &false; geändert.
        </entry>

Modified: phpdoc/de/trunk/reference/pgsql/functions/pg-fetch-array.xml
===================================================================
--- phpdoc/de/trunk/reference/pgsql/functions/pg-fetch-array.xml	2020-05-10 12:13:48 UTC (rev 349768)
+++ phpdoc/de/trunk/reference/pgsql/functions/pg-fetch-array.xml	2020-05-10 12:54:34 UTC (rev 349769)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 341282 Maintainer: conni Status: ready -->
+<!-- EN-Revision: 349708 Maintainer: conni Status: ready -->
 <refentry xml:id="function.pg-fetch-array" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>pg_fetch_array</refname>

Modified: phpdoc/de/trunk/reference/pspell/functions/pspell-config-create.xml
===================================================================
--- phpdoc/de/trunk/reference/pspell/functions/pspell-config-create.xml	2020-05-10 12:13:48 UTC (rev 349768)
+++ phpdoc/de/trunk/reference/pspell/functions/pspell-config-create.xml	2020-05-10 12:54:34 UTC (rev 349769)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: samesch Status: ready -->
+<!-- EN-Revision: 349708 Maintainer: samesch Status: ready -->
 <refentry xml:id="function.pspell-config-create" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
   <refname>pspell_config_create</refname>

Modified: phpdoc/de/trunk/reference/strings/functions/chr.xml
===================================================================
--- phpdoc/de/trunk/reference/strings/functions/chr.xml	2020-05-10 12:13:48 UTC (rev 349768)
+++ phpdoc/de/trunk/reference/strings/functions/chr.xml	2020-05-10 12:54:34 UTC (rev 349769)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 346452 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 349753 Maintainer: sammywg Status: ready -->

 <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.chr">
  <refnamediv>
@@ -109,7 +109,6 @@
     <programlisting role="php">
 <![CDATA[
 <?php
-declare(encoding='UTF-8');
 $str = chr(240) . chr(159) . chr(144) . chr(152);
 echo $str;
 ?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.