|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27618 curl_multi_info_read does not appear to work
Submitted: 2004-03-17 00:02 UTC Modified: 2014-12-30 10:41 UTC
Avg. Score:4.9 ± 0.3
Reproduced:7 of 7 (100.0%)
Same Version:1 (14.3%)
Same OS:3 (42.9%)
From: jason at neodisco dot com Assigned:
Status: No Feedback Package: cURL related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
49 - 17 = ?
Subscribe to this entry?

 [2004-03-17 00:02 UTC] jason at neodisco dot com

I am writing a php-cgi server, using curl-multi.  It needs to start a bunch of curl  'threads', and steadily process the results of finished 'threads' and start new ones in  their place.   

It seems to be working other than curl_multi_info_read() - this function does not  return any data so I cannot see which curl threads have finished and are ready for  processing.   

Looking at the curl-lib docs, it doesn't look too complicated (I'm not a C  programmer though!) to implement, seeing as everything else is working.  Perhaps I  have missed something entirely.   

I assume it is the same problem as mentioned here:? 

Thank you in advance for any help or suggestions you can offer, or perhaps even an  ETA on when this function might be finished so I can either wait, or skin the cat  another way. 

Warm regards, 


Reproduce code:
$status_of_ch_threads = curl_multi_info_read();

Expected result:
Have the status returned


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-19 23:42 UTC] adamsch1 at yahoo dot com
Seeing this on php 5.05 on windows.  Basically from the code (5.05) it looks like curl_multi_info_read *should* return an array so one can determine the state of the requests.  However this function doesn't return anything.  

I've included my test wrapper which does work outside the call to info_read.

Not supporing this function really cripples the usefulness of more sophisticated programs that use curl_multi.


#-- Array of stuff
$connomains = array(

#-- Initalize our multiple request
$mh = curl_multi_init();

#-- Setup each handle
foreach ($connomains as $i => $url) {
       curl_multi_add_handle ($mh,$conn[$i]);

#-- Perform the request
$lastactive = 5;
do {
  if( $active != $lastactive )  {
    $lastactive = $active;
    print_r( curl_multi_info_read( $mh ) );
    print "Left: $active \n";
} while ($active);

foreach ($connomains as $i => $url) {


 [2011-04-08 21:45 UTC]
-Package: Feature/Change Request +Package: cURL related -Operating System: Any +Operating System: * -PHP Version: 6CVS, 5CVS, 4CVS +PHP Version: *
 [2014-04-25 09:41 UTC]
-Status: Open +Status: Feedback -Type: Feature/Change Request +Type: Bug
 [2014-04-25 09:41 UTC]
Cannot reproduce.
 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 10:01:29 2024 UTC