#36537 [Opn->Bgs]: curl_multi_info_read function always return null
ID: 36537
Updated by: mike@php.net
Reported By: smserg at bk dot ru
-Status: Open
+Status: Bogus
Bug Type: cURL related
Operating System: Windows 2000 sp4
PHP Version: 5.1.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
See the second example at http://php.net/curl_multi_exec
Previous Comments:
------------------------------------------------------------------------
[2006-02-26 20:49:34] smserg at bk dot ru
Description:
------------
curl_multi_info_read function always return null
Reproduce code:
---------------
<?php
$connomains = array(
"http://www.cnn.com/",
"http://www.canada.com/",
"http://www.yahoo.com/"
);
$mh = curl_multi_init();
foreach ($connomains as $i => $url) {
$conn[$i]=curl_init($url);
curl_setopt($conn[$i],CURLOPT_RETURNTRANSFER,1);
curl_multi_add_handle ($mh,$conn[$i]);
}
do {
$n=curl_multi_exec($mh,$active);
var_dump(curl_multi_info_read($mh));
} while ($active);
foreach ($connomains as $i => $url) {
$res[$i]=curl_multi_getcontent($conn[$i]);
curl_close($conn[$i]);
}
var_dump(curl_multi_info_read($mh));
?>
Expected result:
----------------
Should be printed info about transfers
Actual result:
--------------
'null' values printed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36537&edit=1
Thread (7 messages)