cvs: phpdoc-de /reference/curl/functions curl-multi-exec.xml
| From: | Daniel Jaenecke | Date: | Wed, 12 Mar 2008 21:43:38 +0000 |
| Subject: | cvs: phpdoc-de /reference/curl/functions curl-multi-exec.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-2540@lists.php.net to get a copy of this message | ||
jaenecke Wed Mar 12 21:43:38 2008 UTC
Modified files:
/phpdoc-de/reference/curl/functions curl-multi-exec.xml
Log:
sync to EN
http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/curl/functions/curl-multi-exec.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc-de/reference/curl/functions/curl-multi-exec.xml
diff -u phpdoc-de/reference/curl/functions/curl-multi-exec.xml:1.5
phpdoc-de/reference/curl/functions/curl-multi-exec.xml:1.6
--- phpdoc-de/reference/curl/functions/curl-multi-exec.xml:1.5 Wed Nov 14 14:29:28 2007
+++ phpdoc-de/reference/curl/functions/curl-multi-exec.xml Wed Mar 12 21:43:38 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.10 Maintainer: jaenecke Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.12 Maintainer: jaenecke Status: ready -->
<refentry xml:id="function.curl-multi-exec" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>curl_multi_exec</refname>
@@ -69,7 +69,7 @@
$ch2 = curl_init();
// URL und weitere Optionen setzen
-curl_setopt($ch1, CURLOPT_URL, "http://www.example.com/");
+curl_setopt($ch1, CURLOPT_URL, "http://lxr.php.net/");
curl_setopt($ch1, CURLOPT_HEADER, 0);
curl_setopt($ch2, CURLOPT_URL, "http://www.php.net/");
curl_setopt($ch2, CURLOPT_HEADER, 0);
@@ -81,14 +81,23 @@
curl_multi_add_handle($mh,$ch1);
curl_multi_add_handle($mh,$ch2);
-$running=null;
+$active = null;
// Handles ausführen
do {
- curl_multi_exec($mh,$running);
-} while ($running > 0)
+ $mrc = curl_multi_exec($mh, $active);
+} while ($mrc == CURLM_CALL_MULTI_PERFORM);
+
+while ($active && $mrc == CURLM_OK) {
+ if (curl_multi_select($mh) != -1) {
+ do {
+ $mrc = curl_multi_exec($mh, $active);
+ } while ($mrc == CURLM_CALL_MULTI_PERFORM);
+ }
+}
+
//close the handles
-curl_multi_remove_handle($ch1);
-curl_multi_remove_handle($ch2);
+curl_multi_remove_handle($mh, $ch1);
+curl_multi_remove_handle($mh, $ch2);
curl_multi_close($mh);
?>