|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77946 Bad cURL resources returned by curl_multi_info_read()
Submitted: 2019-04-27 12:12 UTC Modified: -
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: phansys at gmail dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 7.3.4 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: phansys at gmail dot com
New email:
PHP Version: OS:


 [2019-04-27 12:12 UTC] phansys at gmail dot com
cURL resources returned by curl_multi_info_read() aren't usables with curl_errno() or curl_errno(). When an error occurs with these resources, the "handle" returned doesn't behave as a single handle.
I've created a draft PR with a test exposing the problem:

Test script:
$urls = array(

$mh = curl_multi_init();

foreach ($urls as $i => $url) {
    $conn[$i] = curl_init($url);
    curl_multi_add_handle($mh, $conn[$i]);

do {
    $status = curl_multi_exec($mh, $active);
    $info = curl_multi_info_read($mh);
    if (false !== $info) {
        echo $info['result']."\n";
        echo curl_errno($info['handle'])."\n";
        echo curl_error($info['handle'])."\n";
} while ($status === CURLM_CALL_MULTI_PERFORM || $active);

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


Expected result:
Could not resolve host: nonexistent.tld

Actual result:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-27 13:19 UTC]
The following pull request has been associated:

Patch Name: [cURL] [bug#77946] Add test for `curl_multi_info_read()`
On GitHub:
 [2019-04-29 20:56 UTC] phansys at gmail dot com
This issue seems to be a duplicate of, which is currently in "Bogus" status.
 [2019-06-05 06:52 UTC] toni dot ertl at check24 dot de
happens also with version 7.2.19
 [2019-07-18 12:42 UTC]
Automatic comment on behalf of
Log: Fixed bug #77946
 [2019-07-18 12:42 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Apr 18 06:01:23 2021 UTC