svn: /phpdoc/de/trunk/reference/misc/ functions/constant.xml functions/exit.xml functions/sleep.xml functions/uniqid.xml ini.xml

[email protected] (Nikita Popov)
Newsgroups php.doc.de
Message-ID <[email protected]>
nikic                                    Wed, 29 Jun 2011 21:54:25 +0000

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

Log:
Update some misc docs translations

Changed paths:
    U   phpdoc/de/trunk/reference/misc/functions/constant.xml
    U   phpdoc/de/trunk/reference/misc/functions/exit.xml
    U   phpdoc/de/trunk/reference/misc/functions/sleep.xml
    U   phpdoc/de/trunk/reference/misc/functions/uniqid.xml
    U   phpdoc/de/trunk/reference/misc/ini.xml
svn-diffs-312641.txt (text/x-diff, 8.3 KB)
Modified: phpdoc/de/trunk/reference/misc/functions/constant.xml
===================================================================
--- phpdoc/de/trunk/reference/misc/functions/constant.xml	2011-06-29 21:42:05 UTC (rev 312640)
+++ phpdoc/de/trunk/reference/misc/functions/constant.xml	2011-06-29 21:54:25 UTC (rev 312641)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 299326 Maintainer: hholzgra Status: ready -->
 <refentry xml:id="function.constant" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>constant</refname>
@@ -52,6 +52,13 @@
   </para>
  </refsect1>

+ <refsect1 role="errors">
+  &reftitle.errors;
+  <para>
+   Wenn die Konstante nicht definiert ist, wird ein <constant>E_WARNING</constant> Fehler geworfen.
+  </para>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>

Modified: phpdoc/de/trunk/reference/misc/functions/exit.xml
===================================================================
--- phpdoc/de/trunk/reference/misc/functions/exit.xml	2011-06-29 21:42:05 UTC (rev 312640)
+++ phpdoc/de/trunk/reference/misc/functions/exit.xml	2011-06-29 21:54:25 UTC (rev 312641)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 298371 Maintainer: sammywg Status: ready -->
 <refentry xml:id="function.exit" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>exit</refname>
@@ -19,6 +19,9 @@
   </methodsynopsis>
   <para>
    Beendet die Ausführung des Skripts.
+   <link linkend="function.register-shutdown-function">Shutdown Funktionen</link>
+   und <link linkend="language.oop5.decon.destructor">Objekt Destruktoren</link>
+   werden immer ausgeführt, auch wenn <function>exit</function> aufgerufen wurde.
   </para>
  </refsect1>

@@ -35,9 +38,9 @@
       </para>
       <para>
        Falls <parameter>status</parameter> eine <type>Ganzzahl</type> ist,
-       wird dieser Wert als Exit-Status verwendet. Ein Exit-Status sollte im
-       Bereich von 0 bis 254 liegen, weil der Exit-Status 255 von PHP
-       reserviert ist und deshalb nicht benutzt werden sollte. Der Status 0
+       wird dieser Wert als Exit-Status verwendet anstatt ausgegeben zu werden.
+       Ein Exit-Status sollte im Bereich von 0 bis 254 liegen, weil der Exit-Status
+       255 von PHP reserviert ist und deshalb nicht benutzt werden sollte. Der Status 0
        wird verwendet, um ein Programm erfolgreich zu beenden.
       </para>
       <note>
@@ -98,6 +101,42 @@
     </programlisting>
    </example>
   </para>
+  <para>
+   <example>
+    <title>Shutdown Funktionen und Destruktoren werden trotzdem aufgerufen</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+class Foo
+{
+    public function __destruct()
+    {
+        echo 'Destruktor: ' . __METHOD__ . '()' . PHP_EOL;
+    }
+}
+
+function shutdown()
+{
+    echo 'Shutdown Funktion: ' . __FUNCTION__ . '()' . PHP_EOL;
+}
+
+$foo = new Foo();
+register_shutdown_function('shutdown');
+
+exit();
+echo 'Das hier wird nicht mehr ausgegeben werden.';
+?>
+]]>
+    </programlisting>
+    &example.outputs;
+    <screen>
+ <![CDATA[
+ Shutdown Funktion: shutdown()
+ Destruktor: Foo::__destruct()
+ ]]>
+    </screen>
+   </example>
+  </para>
  </refsect1>

  <refsect1 role="notes">

Modified: phpdoc/de/trunk/reference/misc/functions/sleep.xml
===================================================================
--- phpdoc/de/trunk/reference/misc/functions/sleep.xml	2011-06-29 21:42:05 UTC (rev 312640)
+++ phpdoc/de/trunk/reference/misc/functions/sleep.xml	2011-06-29 21:54:25 UTC (rev 312641)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 305811 Maintainer: sammywg Status: ready -->

 <refentry xml:id="function.sleep" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -39,10 +39,15 @@
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
-   Gibt bei Erfolg null oder im Fehlerfall &false; zurück. Wenn der Aufruf durch
-   ein Signal unterbrochen wurde, gibt <function>sleep</function> die Anzahl
-   der Sekunden zurück, die das Programm noch "schlafen" würde.
+   Gibt bei Erfolg null oder im Fehlerfall &false; zurück.
   </para>
+  <para>
+   Wenn der Aufruf durch ein Signal unterbrochen wurde, gibt <function>sleep</function>
+   eine positive Zahl zurück. Auf Windows ist dieser Wert immer <literal>192</literal>
+   (der Wert der <constant>WAIT_IO_COMPLETION</constant> Konstanden der Windows API).
+   Auf anderen Plattformen ist der Rückgabewert die Anzahl der Sekunden die das Programm
+   eigentlich noch "schlafen" sollte.
+  </para>
  </refsect1>

  <refsect1 role="errors">
@@ -53,6 +58,32 @@
    <constant>E_WARNING</constant>.
   </para>
  </refsect1>
+
+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>5.3.4</entry>
+       <entry>
+        Vor PHP 5.3.4, hat <function>sleep</function> auf Windows immer
+        &null; zurückgegeben, unabhängig davon ob der Aufruf unterbrochen
+        wurde oder nicht.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>

  <refsect1 role="examples">
   &reftitle.examples;

Modified: phpdoc/de/trunk/reference/misc/functions/uniqid.xml
===================================================================
--- phpdoc/de/trunk/reference/misc/functions/uniqid.xml	2011-06-29 21:42:05 UTC (rev 312640)
+++ phpdoc/de/trunk/reference/misc/functions/uniqid.xml	2011-06-29 21:54:25 UTC (rev 312641)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 297028 Maintainer: sammywg Status: ready -->

 <refentry xml:id="function.uniqid" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -66,26 +66,25 @@
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
-   Wenn Sie eine eindeutige ID, bzw. ein eindeutiges Token benötigen und
-   beabsichtigen, dieses Token über das Netzwerk an den Benutzer weiter zu
-   leiten (z.B. als Session-Cookies), ist es ratsam, dass Sie wie folgt
-   vorgehen:
-  </para>
-  <para>
-   Hierdurch wird eine ID mit 32 Zeichen (ein 128 Bit-Hex-Wert) erzeugt, die
-   nur äußerst schwer vorhersehbar ist.
    <example>
     <title><function>uniqid</function>-Beispiel</title>
     <programlisting role="php">
 <![CDATA[
 <?php
-// ohne Präfix
-// funktioniert nur mit PHP 5 und späteren Versionen
-$token = md5(uniqid());
+/* Eine eindeutige ID, beispielsweise: 4b3403665fea6 */
+$uniqid = uniqid();

-// besser, schwierig zu erraten
-$besseres_token = md5(uniqid(mt_rand(), true));
-?>
+/* Zusätzlich kann ein Präfix genutzt werden. Dabei sind die
+ * folgenden beiden Anweisungen sind identisch:
+ */
+$uniqid = uniqid($prefix);
+$uniqid = $prefix . uniqid();
+
+/* Weiterhin kann der more_entropy Parameter aktiviert werden (auf einigen Systemen
+ * wie Cygwin ist dies sogar zwangsweise erforderlich). Dadurch generiert uniqid()
+ * einen Wert ähnlich dem folgenden: 4b340550242239.64159797
+ */
+$uniqid = uniqid('', true);
 ]]>
     </programlisting>
    </example>

Modified: phpdoc/de/trunk/reference/misc/ini.xml
===================================================================
--- phpdoc/de/trunk/reference/misc/ini.xml	2011-06-29 21:42:05 UTC (rev 312640)
+++ phpdoc/de/trunk/reference/misc/ini.xml	2011-06-29 21:54:25 UTC (rev 312641)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 297557 Maintainer: sammywg Status: ready -->
 <section xml:id="misc.configuration" xmlns="http://docbook.org/ns/docbook">
  &reftitle.runtime;
  &extension.runtime;
@@ -45,7 +45,7 @@
       <entry>highlight.bg</entry>
       <entry>"#FFFFFF"</entry>
       <entry>PHP_INI_ALL</entry>
-      <entry>Ab PHP 6.0.0 nicht mehr vorhanden</entry>
+      <entry>&removed.php.future;</entry>
      </row>
      <row>
       <entry>highlight.default</entry>
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.