cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Undocumented curl_multi_select usage

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 30 May 2009 20:15:05 +0200 (CEST)

On Sat, 30 May 2009, Massimo Lombardo wrote:

> The only part that deals with curl_multi_fdset (curl_multi_select in PHP)
> is:

Well, part of your problem is that curl_multi_fdset is NOT the equivalent of
curl_multi_select in PHP. The PHP way seems to be using curl_multi_fdset() and
do the subsequent select() as well, all in the same function called
curl_multi_select.

> If I was a total newbie to libcurl, after reading that page, I still was
> alone in the dark: no real-world example. IMHO, you should add some code
> examples section, like you do with PHP/CURL.

We have plenty. They are included in every release archive and they are
available on the site: http://curl.haxx.se/lxr/source/docs/examples/

You can find several examples using curl_multi_fdset() in there. And if that
is not enough, we have lots of test cases that test the multi interface that
also shows how to use that function. See
http://curl.haxx.se/lxr/source/tests/libtest/

>> Stop waiting. Fix the problems and post your patches.
>
> I'm not in the PHP development team, sorry.

Fixes can be done by anyone. In the cURL project we have over 700 contributors
so far, and we're just 4-5 core guys in the "dev team". Everyone can
participate. I know this is true for the PHP project as well.

> By the way, I've found this: http://bit.ly/vxsmm (url shortened)

That's one of our libcurl examples. It shows how to use the libcurl API.

> Which is very similar to this: http://bugs.php.net/bug.php?id=26332
>
> Is this one the right approach?

Are you now asking if I know how curl_multi_select() works? I don't. But I
could guess that it is a working approach. The comments in that bug entry seem
to indicate that.

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-05-30