svn: /phpdoc/de/trunk/language/ context/ftp.xml context/ssl.xml oop5/autoload.xml oop5/decon.xml oop5/object-comparison.xml oop5/visibility.xml

[email protected] (Christoph Michael Becker)
Newsgroups php.doc.de
Message-ID <[email protected]>
cmb                                      Tue, 09 Jan 2018 14:18:34 +0000

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

Log:
Sync with EN

Changed paths:
    U   phpdoc/de/trunk/language/context/ftp.xml
    U   phpdoc/de/trunk/language/context/ssl.xml
    U   phpdoc/de/trunk/language/oop5/autoload.xml
    U   phpdoc/de/trunk/language/oop5/decon.xml
    U   phpdoc/de/trunk/language/oop5/object-comparison.xml
    U   phpdoc/de/trunk/language/oop5/visibility.xml
svn-diffs-343800.txt (text/x-diff, 10 KB)
Modified: phpdoc/de/trunk/language/context/ftp.xml
===================================================================
--- phpdoc/de/trunk/language/context/ftp.xml	2018-01-09 14:08:26 UTC (rev 343799)
+++ phpdoc/de/trunk/language/context/ftp.xml	2018-01-09 14:18:34 UTC (rev 343800)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 306259 Maintainer: hholzgra  Status: ready -->
+<!-- EN-Revision: 341125 Maintainer: hholzgra  Status: ready -->

 <refentry xml:id="context.ftp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
  <refnamediv>
@@ -85,13 +85,6 @@
         <parameter>proxy</parameter> wurde hinzugefügt.
        </entry>
       </row>
-      <row>
-       <entry>5.0.0</entry>
-       <entry>
-        <parameter>overwrite</parameter> und <parameter>resume_pos</parameter>
-        wurden hinzugefügt.
-       </entry>
-      </row>
      </tbody>
     </tgroup>
    </informaltable>

Modified: phpdoc/de/trunk/language/context/ssl.xml
===================================================================
--- phpdoc/de/trunk/language/context/ssl.xml	2018-01-09 14:08:26 UTC (rev 343799)
+++ phpdoc/de/trunk/language/context/ssl.xml	2018-01-09 14:18:34 UTC (rev 343800)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 334710 Maintainer: simp  Status: working -->
+<!-- EN-Revision: 341125 Maintainer: simp  Status: working -->

 <refentry xml:id="context.ssl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
  <refnamediv>
@@ -115,9 +115,24 @@
        im PEM-Format gespeicherte Datei sein welche das Zertifikat und
        den privaten Schlüssel enthält. Optional kann dies die Kette an
        Herausgeberzertifikaten enthalten.
+       Der private Schlüssel kann ebenfalls in einer eigenen Datei enthalten
+       sein, die durch <literal>local_pk</literal> angegeben wird.
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry xml:id="context.ssl.local-pk">
+     <term>
+      <parameter>local_pk</parameter>
+      <type>string</type>
+     </term>
+     <listitem>
+      <para>
+       Pfad zu einer lokalen Datei, die den privaten Schlüssel enthält, falls es
+       unterschiedliche Dateien für Zertifikate (<literal>local_cert</literal>)
+       und private Schlüssel gibt.
+      </para>
+     </listitem>
+    </varlistentry>
     <varlistentry xml:id="context.ssl.passphrase">
      <term>
       <parameter>passphrase</parameter>
@@ -307,14 +322,6 @@
         <parameter>SNI_server_name</parameter> hinzugefügt.
        </entry>
       </row>
-      <row>
-       <entry>5.0.0</entry>
-       <entry>
-        <parameter>capture_peer_cert</parameter>,
-        <parameter>capture_peer_chain</parameter> und
-        <parameter>ciphers</parameter> hinzugefügt.
-       </entry>
-      </row>
      </tbody>
     </tgroup>
    </informaltable>

Modified: phpdoc/de/trunk/language/oop5/autoload.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/autoload.xml	2018-01-09 14:08:26 UTC (rev 343799)
+++ phpdoc/de/trunk/language/oop5/autoload.xml	2018-01-09 14:18:34 UTC (rev 343800)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 340338 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 340349 Maintainer: simp Status: ready -->
 <!-- Credits: hholzgra -->
 <sect1 xml:id="language.oop5.autoload" xmlns="http://docbook.org/ns/docbook">
   <title>Autoloading</title>

Modified: phpdoc/de/trunk/language/oop5/decon.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/decon.xml	2018-01-09 14:08:26 UTC (rev 343799)
+++ phpdoc/de/trunk/language/oop5/decon.xml	2018-01-09 14:18:34 UTC (rev 343800)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 333259 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 341633 Maintainer: hholzgra Status: ready -->
 <!-- Credits: simp -->
  <sect1 xml:id="language.oop5.decon" xmlns="http://docbook.org/ns/docbook">
   <title>Konstruktoren und Destruktoren</title>
@@ -64,14 +64,22 @@
     </programlisting>
    </example>
    <para>
-    Aus Gründen der Abwärtskompatibilität sucht PHP 5, falls die Klasse keine
-    <link linkend="object.construct">__construct()</link> Methode besitzt,
-    und die Klasse keine von einer Elternklasse geerbt hat, nach einem
+    Aus Gründen der Abwärtskompatibilität mit PHP 3 und 4 sucht PHP, falls keine
+    <link linkend="object.construct">__construct()</link> Methode vorhanden ist,
+    nach einem
     Konstruktur des alten Stils, d.h. einer Methode mit dem selben Namen wie die Klasse.
     Der einzige Fall in dem somit Kompatibilitätsprobleme auftreten können, ist wenn
     die Klasse eine Methode <link linkend="object.construct">__construct()</link> definiert,
     welche jedoch für andere Zwecke benutzt wird.
    </para>
+   <warning>
+    <simpara>
+     Konstruktoren des alten Stils wurden in PHP 7.0
+     <emphasis>MISSBILLIGT</emphasis>, und werden in einer zukünftigen Version
+     entfernt. Neuer Code sollte immer
+     <link linkend="object.construct">__construct()</link> verwenden.
+    </simpara>
+   </warning>
    <para>
     Im Gegensatz zu anderen Methoden, generiert PHP keinen <constant>E_STRICT</constant>
     Fehler, wenn <link linkend="object.construct">__construct()</link> in einer Kindklasse

Modified: phpdoc/de/trunk/language/oop5/object-comparison.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/object-comparison.xml	2018-01-09 14:08:26 UTC (rev 343799)
+++ phpdoc/de/trunk/language/oop5/object-comparison.xml	2018-01-09 14:18:34 UTC (rev 343800)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 340240 Maintainer: wiesemann Status: ready -->
+<!-- EN-Revision: 343316 Maintainer: wiesemann Status: ready -->
   <sect1 xml:id="language.oop5.object-comparison" xmlns="http://docbook.org/ns/docbook">
    <title>Objekte vergleichen</title>
    <para>
@@ -42,7 +42,7 @@
 {
     public $flag;

-    function Flag($flag = true) {
+    function __construct($flag = true) {
         $this->flag = $flag;
     }
 }
@@ -51,7 +51,7 @@
 {
     public $flag;

-    function OtherFlag($flag = true) {
+    function __construct($flag = true) {
         $this->flag = $flag;
     }
 }

Modified: phpdoc/de/trunk/language/oop5/visibility.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/visibility.xml	2018-01-09 14:08:26 UTC (rev 343799)
+++ phpdoc/de/trunk/language/oop5/visibility.xml	2018-01-09 14:18:34 UTC (rev 343800)
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 331736 Maintainer: wiesemann Status: ready -->
+<!-- EN-Revision: 341919 Maintainer: wiesemann Status: ready -->
  <sect1 xml:id="language.oop5.visibility" xmlns="http://docbook.org/ns/docbook">
   <title>Sichtbarkeit</title>
   <para>
-   Die Sichtbarkeit einer Eigenschaft oder Methode kann definiert werden, indem
+   Die Sichtbarkeit einer Eigenschaft, Methode oder (von PHP 7.1.0 an) einer Konstante kann definiert werden, indem
    man der Deklaration eines der Schlüsselwörter <emphasis>public</emphasis>,
    <emphasis>protected</emphasis> oder <emphasis>private</emphasis> voranstellt.
    Auf public deklarierte Elemente kann von überall her zugegriffen werden.
@@ -55,8 +55,9 @@
  */
 class MyClass2 extends MyClass
 {
-    // Wir können die public- und protected-Methoden neu deklarieren,
-    // aber nicht die private-Methode
+    // Wir können die public- und protected-Eigenschaften neu deklarieren,
+    // aber nicht die private
+    public $public = 'Public2';
     protected $protected = 'Protected2';

     function printHello()
@@ -71,7 +72,7 @@
 echo $obj2->public; // Funktioniert
 echo $obj2->protected; // Fataler Fehler
 echo $obj2->private; // Undefiniert
-$obj2->printHello(); // Zeigt Public, Protected2, Undefined
+$obj2->printHello(); // Zeigt Public2, Protected2, Undefined

 ?>
 ]]>
@@ -179,7 +180,7 @@
     }
 }

-$myFoo = new foo();
+$myFoo = new Foo();
 $myFoo->test(); // Bar::testPrivate
                 // Foo::testPublic
 ?>
@@ -189,6 +190,72 @@
    </para>
   </sect2>

+  <sect2 xml:id="language.oop5.visiblity-constants">
+   <title>Constant Visibility</title>
+   <para>
+    Von PHP 7.1.0 an können Klassenkonstanten als public, private, oder
+    protected definiert werden. Konstanten, die ohne eine explizite
+    Sichtbarkeitsangabe deklariert wurden, sind public.
+   </para>
+   <para>
+    <example>
+     <title>Konstantendeklaration von PHP 7.1.0 an</title>
+     <programlisting role="php">
+<![CDATA[
+<?php
+/**
+ * Definiere MyClass
+ */
+class MyClass
+{
+    // Deklariere eine öffentliche Konstante
+    public const MY_PUBLIC = 'öffentlich';
+
+    // Deklariere eine geschützte Konstante
+    protected const MY_PROTECTED = 'geschützt';
+
+    // Deklariere eine private Konstante
+    private const MY_PRIVATE = 'privat';
+
+    public function foo()
+    {
+        echo self::MY_PUBLIC;
+        echo self::MY_PROTECTED;
+        echo self::MY_PRIVATE;
+    }
+}
+
+$myclass = new MyClass();
+MyClass::MY_PUBLIC; // funktioniert
+MyClass::MY_PROTECTED; // fataler Fehler
+MyClass::MY_PRIVATE; // fataler Fehler
+$myclass->foo(); // öffentlich, geschützt und private funktioniert
+
+
+/**
+ * Definiere MyClass2
+ */
+class MyClass2 extends MyClass
+{
+    // Dies ist öffentlich
+    function foo2()
+    {
+        echo self::MY_PUBLIC;
+        echo self::MY_PROTECTED;
+        echo self::MY_PRIVATE; // fataler Fehler
+    }
+}
+
+$myclass2 = new MyClass2;
+echo MyClass2::MY_PUBLIC; // funktioniert
+$myclass2->foo2(); // öffentlich und geschützt funktioniert, aber nicht privat
+?>
+]]>
+     </programlisting>
+    </example>
+   </para>
+  </sect2>
+
   <sect2 xml:id="language.oop5.visibility-other-objects">
    <title>Sichtbarkeit von anderen Objekten</title>
    <para>
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.