svn: /phpdoc/de/trunk/reference/errorfunc/functions/ error-reporting.xml

[email protected] (Nikita Popov)
Newsgroups php.doc.de
Message-ID <[email protected]>
nikic                                    Mon, 15 Aug 2011 10:54:37 +0000

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

Log:
Sync DE error_reporting() docs with EN (fixes bug #55418)

Bug: https://bugs.php.net/55418 (Open) Documentation issue, E_ALL with wrong value since update to 5.3
      
Changed paths:
    U   phpdoc/de/trunk/reference/errorfunc/functions/error-reporting.xml
svn-diffs-314939.txt (text/x-diff, 8.5 KB)
Modified: phpdoc/de/trunk/reference/errorfunc/functions/error-reporting.xml
===================================================================
--- phpdoc/de/trunk/reference/errorfunc/functions/error-reporting.xml	2011-08-15 10:39:07 UTC (rev 314938)
+++ phpdoc/de/trunk/reference/errorfunc/functions/error-reporting.xml	2011-08-15 10:54:37 UTC (rev 314939)
@@ -1,26 +1,25 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 297626 Maintainer: hholzgra Status: ready -->
 <refentry xml:id="function.error-reporting" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>error_reporting</refname>
-  <refpurpose>
-   Gibt an, welche PHP-Fehlermeldungen angezeigt werden
-  </refpurpose>
+  <refpurpose>Gibt an, welche PHP-Fehlermeldungen gemeldet werden</refpurpose>
  </refnamediv>

  <refsect1 role="description">
   &reftitle.description;
-   <methodsynopsis>
-    <type>int</type><methodname>error_reporting</methodname>
-    <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam>
-   </methodsynopsis>
+  <methodsynopsis>
+   <type>int</type><methodname>error_reporting</methodname>
+   <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam>
+  </methodsynopsis>
   <para>
    Mit <function>error_reporting</function> wird die <link linkend="ini.error-reporting">error_reporting</link>
    Direktive zur Laufzeit des Programms gesetzt. In PHP gibt es viele
    Stufen für die Anzeige von Fehlermeldungen, die mit dieser
-   Funktion für die Dauer der Programmausführung eingestellt werden
-   kann.
+   Funktion für die Dauer der Programmausführung eingestellt werden kann.
+   Wenn das optionale <parameter>level</parameter> Argument nicht übergeben wird,
+   gibt <function>error_reporting</function> das aktuelle Error Level zurück.
   </para>
  </refsect1>

@@ -41,119 +40,8 @@
        nicht unbedingt weiter das erwartete Verhalten zeigen.
       </para>
       <para>
-       Die folgende Tabelle listet die verfügbaren Konstanten auf.
-       Die Bedeutung der jeweiligen Error Level finden Sie im
-       Abschnitt
-       <link linkend="errorfunc.constants">predefined constants</link>.
-       <table>
-        <title><function>error_reporting</function> Level Konstanten und Bit-Werte</title>
-        <tgroup cols="2">
-         <thead>
-          <row>
-           <entry>value</entry>
-           <entry>constant</entry>
-          </row>
-         </thead>
-         <tbody>
-          <row>
-           <entry>1</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-error">E_ERROR</link>
-           </entry>
-          </row>
-          <row>
-           <entry>2</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-warning">E_WARNING</link>
-           </entry>
-          </row>
-          <row>
-           <entry>4</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-parse">E_PARSE</link>
-           </entry>
-          </row>
-          <row>
-           <entry>8</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-notice">E_NOTICE</link>
-           </entry>
-          </row>
-          <row>
-           <entry>16</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-core-error">E_CORE_ERROR</link>
-           </entry>
-          </row>
-          <row>
-           <entry>32</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-core-warning">E_CORE_WARNING</link>
-           </entry>
-          </row>
-          <row>
-           <entry>64</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-compile-error">E_COMPILE_ERROR</link>
-           </entry>
-          </row>
-          <row>
-           <entry>128</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-compile-warning">E_COMPILE_WARNING</link>
-           </entry>
-          </row>
-          <row>
-           <entry>256</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-user-error">E_USER_ERROR</link>
-           </entry>
-          </row>
-          <row>
-           <entry>512</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-user-warning">E_USER_WARNING</link>
-           </entry>
-          </row>
-          <row>
-           <entry>1024</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-user-error">E_USER_NOTICE</link>
-           </entry>
-          </row>
-          <row>
-           <entry>6143</entry>
-           <entry>
-           <link linkend="errorfunc.constants.errorlevels.e-all">E_ALL</link>
-           </entry>
-         </row>
-          <row>
-           <entry>2048</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-strict">E_STRICT</link>
-           </entry>
-          </row>
-          <row>
-           <entry>4096</entry>
-           <entry>
-            <link linkend="errorfunc.constants.errorlevels.e-recoverable-error">E_RECOVERABLE_ERROR</link>
-           </entry>
-          </row>
-          <row>
-            <entry>8192</entry>
-            <entry>
-              <link linkend="errorfunc.constants.errorlevels.e-deprecated-error">E_DEPRECATED</link>
-            </entry>
-          </row>
-          <row>
-            <entry>16384</entry>
-            <entry>
-              <link linkend="errorfunc.constants.errorlevels.e-user-deprecated">E_USER_DEPRECATED</link>
-            </entry>
-          </row>
-         </tbody>
-        </tgroup>
-       </table>
+       Die verfügbaren Konstanten und die Bedeutungen der jeweiligen Error Level
+       sind im Abschnitt <link linkend="errorfunc.constants">Vordefinierte Konstanten</link> beschrieben.
       </para>
      </listitem>
     </varlistentry>
@@ -165,7 +53,7 @@
   &reftitle.returnvalues;
   <para>
    Gibt den bisherigen <link linkend="ini.error-reporting">error_reporting</link> Wert zurück
-   level.
+   oder das aktuelle Level, wenn <parameter>level</parameter> nicht übergeben wurde.
   </para>
  </refsect1>

@@ -194,10 +82,12 @@
         <entry><constant>E_DEPRECATED</constant> und <constant>E_USER_DEPRECATED</constant>
           wurden hinzugefügt.</entry>
       </row>
+      <!-- FIXME PHP_6
       <row>
-       <entry>6</entry>
+       <entry>6.0.0</entry>
        <entry><constant>E_STRICT</constant> ist nun in <constant>E_ALL</constant> enthalten.</entry>
       </row>
+      -->
      </tbody>
     </tgroup>
    </informaltable>
@@ -227,9 +117,12 @@
 // Dies ist der Vorgabewert in php.ini
 error_reporting(E_ALL ^ E_NOTICE);

-// Melde alle PHP Fehler
+// Melde alle PHP Fehler (siehe Changelog)
 error_reporting(E_ALL);

+// Melde alle PHP Fehler
+error_reporting(-1);
+
 // Dies entspricht error_reporting(E_ALL);
 ini_set('error_reporting', E_ALL);

@@ -244,12 +137,22 @@
   &reftitle.notes;
   <warning>
    <simpara>
-    Most of <constant>E_STRICT</constant> errors are evaluated at the
-    compile time thus such errors are not reported in the file where
-    <link linkend="ini.error-reporting">error_reporting</link> is enhanced
-    to include <constant>E_STRICT</constant> errors (and vice versa).
+    Der Großteil der <constant>E_STRICT</constant> Fehler werden zur Compile-Zeit
+    generiert und werden somit nicht angezeigt, wenn <constant>E_STRICT</constant> zur
+    Laufzeit zu <link linkend="ini.error-reporting">error_reporting</link>
+    hinzugefügt wird (und auch andersrum).
    </simpara>
   </warning>
+  <tip>
+   <simpara>
+    Durch Übergeben des Wertes <literal>-1</literal> werden alle möglichen Fehler angezeigt,
+    auch wenn neue Level in zukünftigen PHP-Versionen hinzugefügt werden.
+    <!-- FIXME PHP_6
+     Die
+    <constant>E_ALL</constant> verhält sich seit PHP 6 ebenfalls so.
+    -->
+   </simpara>
+  </tip>
  </refsect1>

  <refsect1 role="seealso">
@@ -257,8 +160,8 @@
   <para>
    <simplelist>
     <member>Die <link linkend="ini.display-errors">display_errors</link> Direktive</member>
-    <member>The <link linkend="ini.html-errors">html_errors</link> directive</member>
-    <member>The <link linkend="ini.xmlrpc-errors">xmlrpc_errors</link> directive</member>
+    <member>Die <link linkend="ini.html-errors">html_errors</link> Direktive</member>
+    <member>Die <link linkend="ini.xmlrpc-errors">xmlrpc_errors</link> Direktive</member>
     <member><function>ini_set</function></member>
    </simplelist>
   </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.