svn: /phpdoc/de/trunk/reference/curl/functions/ curl-multi-info-read.xml curl-setopt-array.xml curl-setopt.xml curl-version.xml

[email protected] (Daniel Jaenecke)
Newsgroups php.doc.de
Message-ID <[email protected]>
jaenecke                                 Tue, 28 Sep 2010 11:42:09 +0000

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

Log:
sync to EN

Changed paths:
    U   phpdoc/de/trunk/reference/curl/functions/curl-multi-info-read.xml
    U   phpdoc/de/trunk/reference/curl/functions/curl-setopt-array.xml
    U   phpdoc/de/trunk/reference/curl/functions/curl-setopt.xml
    U   phpdoc/de/trunk/reference/curl/functions/curl-version.xml

Modified: phpdoc/de/trunk/reference/curl/functions/curl-multi-info-read.xml
===================================================================
--- phpdoc/de/trunk/reference/curl/functions/curl-multi-info-read.xml	2010-09-28 11:36:45 UTC (rev 303819)
+++ phpdoc/de/trunk/reference/curl/functions/curl-multi-info-read.xml	2010-09-28 11:42:09 UTC (rev 303820)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297829 Maintainer: jaenecke Status: ready -->
+<!-- EN-Revision: 298918 Maintainer: jaenecke Status: ready -->
 <refentry xml:id="function.curl-multi-info-read" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>curl_multi_info_read</refname>
@@ -12,7 +12,7 @@
   <methodsynopsis>
    <type>array</type><methodname>curl_multi_info_read</methodname>
    <methodparam><type>resource</type><parameter>mh</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter role="reference">msgs_in_queue</parameter><initializer>NULL</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter role="reference">msgs_in_queue</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <para>
    Ruft Informationen oder Nachrichten der einzelnen Transfers ab sofern vorhanden.

Modified: phpdoc/de/trunk/reference/curl/functions/curl-setopt-array.xml
===================================================================
--- phpdoc/de/trunk/reference/curl/functions/curl-setopt-array.xml	2010-09-28 11:36:45 UTC (rev 303819)
+++ phpdoc/de/trunk/reference/curl/functions/curl-setopt-array.xml	2010-09-28 11:42:09 UTC (rev 303820)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: jaenecke Status: ready -->
+<!-- EN-Revision: 300047 Maintainer: jaenecke Status: ready -->
 <refentry xml:id="function.curl-setopt-array" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>curl_setopt_array</refname>
@@ -81,7 +81,7 @@
    </example>
   </para>
   <para>
-   Für PHP-Versionen vor PHP 5.1.4 kann diese Funktion simuliert werden durch:
+   Für PHP-Versionen vor PHP 5.1.3 kann diese Funktion simuliert werden durch:
   </para>
   <para>
    <example>

Modified: phpdoc/de/trunk/reference/curl/functions/curl-setopt.xml
===================================================================
--- phpdoc/de/trunk/reference/curl/functions/curl-setopt.xml	2010-09-28 11:36:45 UTC (rev 303819)
+++ phpdoc/de/trunk/reference/curl/functions/curl-setopt.xml	2010-09-28 11:42:09 UTC (rev 303820)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: jaenecke Status: ready -->
+<!-- EN-Revision: 303617 Maintainer: jaenecke Status: ready -->
 <refentry xml:id="function.curl-setopt" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>curl_setopt</refname>
@@ -760,7 +760,7 @@
            <entry valign="top"><constant>CURLOPT_COOKIEJAR</constant></entry>
            <entry valign="top">
             Der Name einer Datei in der alle internen Cookies beim Schließen
-            der Verbindung gespeichert werden.
+            des Handles gespeichert werden, z.B. nach einem Aufruf von curl_close.
            </entry>
            <entry valign="top">
            </entry>
@@ -1051,7 +1051,10 @@
           <row>
            <entry valign="top"><constant>CURLOPT_HTTPHEADER</constant></entry>
            <entry valign="top">
-            Ein Array von HTTP-Headern.
+            Ein Array von HTTP-Headern, im Format
+            <code>
+             array('Content-type: text/plain', 'Content-length: 100')
+            </code>
            </entry>
            <entry valign="top">
            </entry>
@@ -1179,7 +1182,7 @@
             Eine  Callback-Funktion, die zwei Parameter erwartet. Der
             erste ist die cURL-Resource, der zweite ist ein String mit den zu
             schreibenden Daten. Bei Nutzung dieser Callback-Funktion liegt die
-            Verantwortung für das Schreiben der Daten bei Ihnen. Die Funktion muss
+            Verantwortung für das Speichern der Daten bei Ihnen. Die Funktion muss
             die genaue Anzahl geschriebener Bytes zurückgeben!
            </entry>
           </row>

Modified: phpdoc/de/trunk/reference/curl/functions/curl-version.xml
===================================================================
--- phpdoc/de/trunk/reference/curl/functions/curl-version.xml	2010-09-28 11:36:45 UTC (rev 303819)
+++ phpdoc/de/trunk/reference/curl/functions/curl-version.xml	2010-09-28 11:42:09 UTC (rev 303820)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: jaenecke Status: ready -->
+<!-- EN-Revision: 297028 Maintainer: jaenecke Status: ready -->
 <refentry xml:id="function.curl-version" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>curl_version</refname>
@@ -11,7 +11,7 @@
   &reftitle.description;
   <methodsynopsis>
    <type>array</type><methodname>curl_version</methodname>
-   <methodparam choice="opt"><type>int</type><parameter>age</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>age</parameter><initializer>CURLVERSION_NOW</initializer></methodparam>
   </methodsynopsis>
   <para>
    Gibt Informationen über die cURL-Version zurück.
@@ -39,6 +39,12 @@
    Gibt ein assoziatives Array mit den folgenden Elementen zurück:
    <informaltable>
     <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>Index</entry>
+       <entry>Beschreibung</entry>
+      </row>
+     </thead>
      <tbody>
       <row>
        <entry>version_number</entry>
@@ -81,6 +87,42 @@
    </informaltable>
   </para>
  </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title>Beispiel für <function>curl_version</function></title>
+    <para>
+     Dieses Beispiel anhand der Bitmask die von <function>curl_version</function>
+     zurückgegeben wird welche Features in dieser cURL-Version verfügbar sind.
+    </para>
+    <programlisting role="php">
+<![CDATA[
+<?php
+// Hole Array mit Versions-Informationen
+$version = curl_version();
+
+// Diese Bitfelder können zur Prüfung benutzt werden
+$bitfields = Array(
+            'CURL_VERSION_IPV6',
+            'CURL_VERSION_KERBEROS4',
+            'CURL_VERSION_SSL',
+            'CURL_VERSION_LIBZ'
+            );
+
+
+foreach($bitfields as $feature)
+{
+    echo $feature . ($version['features'] & constant($feature) ? ' ja' : ' nein');
+    echo PHP_EOL;
+}
+?>
+]]>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
 </refentry>

 <!-- Keep this comment at the end of the file
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.