Skip to content

[HttpClient] CurlResponse.php - Trying to access array offset on false #60016

@sungvadan

Description

@sungvadan

Symfony version(s) affected

6.4.19

Description

Hello,
I have updated the version of HttpClient from 6.4.18 to 6.4.19 . And I encountered a bug. I tried to debug it, but I can't find the issue. The code in this part has not been modified between the two versions.

curl_getinfo($this->handle, \CURLINFO_PRIVATE); in version 6.4.19 return false and causes the bug

Image

Thanks in advance.

How to reproduce

I don't really know how to reproduce. But in some case curl_getinfo($this->handle, \CURLINFO_PRIVATE); return false.

Possible Solution

Maybe change to

$waitFor = @curl_getinfo($ch, \CURLINFO_PRIVATE) ?: '_0';

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions