Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NativeHttpClient thows Invalid IP Address: 0 on PHP 8.1 #41622

Closed
@derrabus

Description

@derrabus

Blocks #41552

Symfony version(s) affected: 4.4-dev

Description
Making a request with NativeHttpClient on PHP 8.1 will yield a TransportException with the following error message:

fopen(): Invalid IP Address: 0

When I switch to CurlHttpClient, the error is gone.

How to reproduce

$client = new NativeHttpClient();
$client->request('GET', 'https://www.symfony.com')->getInfo();

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