svn: /phpdoc/de/trunk/language/control-structures/ continue.xml include.xml require.xml

[email protected] (Nikita Popov)
Newsgroups php.doc.de
Message-ID <[email protected]>
nikic                                    Thu, 30 Jun 2011 19:19:37 +0000

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

Log:
Sync some DE control structure docs with EN

Changed paths:
    U   phpdoc/de/trunk/language/control-structures/continue.xml
    UU  phpdoc/de/trunk/language/control-structures/include.xml
    U   phpdoc/de/trunk/language/control-structures/require.xml

Modified: phpdoc/de/trunk/language/control-structures/continue.xml
===================================================================
--- phpdoc/de/trunk/language/control-structures/continue.xml	2011-06-30 19:16:16 UTC (rev 312718)
+++ phpdoc/de/trunk/language/control-structures/continue.xml	2011-06-30 19:19:37 UTC (rev 312719)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 310698 Maintainer: sammywg Status: ready -->

 <sect1 xml:id="control-structures.continue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title><literal>continue</literal></title>
@@ -21,6 +21,12 @@
   das angibt, wie viele Ebenen umschließender Schleifen bis zu ihrem Ende
   übersprungen werden sollen.
  </simpara>
+ <note>
+  <para>
+   <literal>continue 0;</literal> und <literal>continue 1;</literal> sind
+   äquivalent zu <literal>continue;</literal>.
+  </para>
+ </note>
  <para>
   <informalexample>
    <programlisting role="php">
@@ -37,9 +43,9 @@
 while ($i++ < 5) {
     echo "Äußere<br />\n";
     while (1) {
-        echo "&nbsp;&nbsp;Mittlere<br />\n";
+        echo "Mittlere<br />\n";
         while (1) {
-            echo "&nbsp;&nbsp;Innere<br />\n";
+            echo "Innere<br />\n";
             continue 3;
         }
         echo "Das hier wird nie ausgegeben.<br />\n";
@@ -89,9 +95,11 @@
 ]]>
     </screen>
     <para>
-     ... aus, da der Rückgabewert des <function>print</function>-Aufrufs
-     <literal>int(1)</literal> ist und daher als das oben genannte optionale
-     numerische Argument betrachtet wird.
+     ... aus, da <literal>continue print "$i\n";</literal> als ein Ausdruck
+     ausgeführt wird und <function>print</function> somit nur aufgerufen wird,
+     wenn <literal>$i == 2</literal> ist. (Der Rückgabewert von
+     <function>print</function>, welcher immer 1 ist, wird an
+     <literal>continue</literal> als numerische Argument übergeben.)
     </para>
    </informalexample>
   </para>

Modified: phpdoc/de/trunk/language/control-structures/include.xml
===================================================================
--- phpdoc/de/trunk/language/control-structures/include.xml	2011-06-30 19:16:16 UTC (rev 312718)
+++ phpdoc/de/trunk/language/control-structures/include.xml	2011-06-30 19:19:37 UTC (rev 312719)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: raphaelm Status: ready -->
+<!-- EN-Revision: 310855 Maintainer: raphaelm Status: ready -->

 <sect1 xml:id="function.include" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title><function>include</function></title>
@@ -15,15 +15,20 @@
  <simpara>
   Dateien werden unter dem angegebenen Pfad gesucht, oder, wenn keiner
   gegeben ist, im <link linkend="ini.include-path">include_path</link>.
+  Wenn die Datei auch im <link linkend="ini.include-path">include_path</link>
+  nicht gefunden werden kann, sucht <function>include</function> noch in
+  dem Verzeichnis der aufrufenden Datei und dem aktuellen Arbeitsverzeichnis.
   Wenn keine Datei gefunden wurde, erzeugt <function>include</function>
   eine <link linkend="errorfunc.constants.errorlevels.e-warning">Warnung</link>,
   im Gegensatz dazu erzeugt <function>require</function> in diesem Fall einen
   <link linkend="errorfunc.constants.errorlevels.e-error">Fatal Error</link>.
  </simpara>
  <simpara>
-  Wenn ein Pfad angegeben ist (absolut oder relativ), wird der
-  <link linkend="ini.include-path">include_path</link> ignoriert. Wenn der
-  Dateiname beispielsweise mit <literal>../</literal> befinnt, sucht der
+  Wenn ein Pfad angegeben ist — ob absolut (beginnend mit einem Laufwerksbuchstaben
+  oder <literal>\</literal> auf Windows oder <literal>/</literal> auf Unix/Linux)
+  oder relativ (beginnend mit <literal>.</literal> oder <literal>..</literal>), wird
+  der <link linkend="ini.include-path">include_path</link> ignoriert. Wenn der
+  Dateiname beispielsweise mit <literal>../</literal> beginnt, sucht der
   Parser im übergeordneten Verzeichnis des aktuellen Arbeitsverzeichnisses
   nach der Datei.
  </simpara>
@@ -287,9 +292,7 @@
     if (is_file($filename)) {
         ob_start();
         include $filename;
-        $contents = ob_get_contents();
-        ob_end_clean();
-        return $contents;
+        return ob_get_clean();
     }
     return false;
 }


Property changes on: phpdoc/de/trunk/language/control-structures/include.xml
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: phpdoc/de/trunk/language/control-structures/require.xml
===================================================================
--- phpdoc/de/trunk/language/control-structures/require.xml	2011-06-30 19:16:16 UTC (rev 312718)
+++ phpdoc/de/trunk/language/control-structures/require.xml	2011-06-30 19:19:37 UTC (rev 312719)
@@ -8,8 +8,8 @@
  <para>
   <function>require</function> entspricht im Wesentlichen
   <function>include</function>, wirft aber im Fehlerfall einen
-  <constant>E_ERROR</constant> Fehler. Es beendet also die
-  Programmausführung während <function>include</function>
+  <constant>E_COMPILE_ERROR</constant> Fehler. Es beendet also
+  die Programmausführung während <function>include</function>
   nur eine Warnung (<constant>E_WARNING</constant>) generiert
   und so die weitere Programmausführung gestattet.
  </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.