Closed as not planned
Description
Description
The following code:
$ cat composer.json
{
"require": {
"symfony/http-client": "^6.4"
}
}
<?php
require 'vendor/autoload.php';
use Symfony\Component\HttpClient\HttpClient;
$c = HttpClient::create();
$r = $c->request('GET', 'https://www.dubarry.com/eu/nl/search?sSearch=386922_40');
var_dump($r->getStatusCode());
Resulted in this output:
I have no name!@f6e21ecae0c6:/app$ php test.php
int(200)
I have no name!@f6e21ecae0c6:/app$ php test.php
Segmentation fault (core dumped)
I have no name!@f6e21ecae0c6:/app$ php test.php
Segmentation fault (core dumped)
I have no name!@f6e21ecae0c6:/app$ php test.php
Segmentation fault (core dumped)
I have no name!@f6e21ecae0c6:/app$ php test.php
Segmentation fault (core dumped)
I have no name!@f6e21ecae0c6:/app$ php test.php
Segmentation fault (core dumped)
I have no name!@f6e21ecae0c6:/app$ php test.php
int(200)
But I expected this output instead:
only integers
The relevant symfony issue is at symfony/symfony#54796
PHP Version
PHP 8.1.28
Operating System
Linux f6e21ecae0c6 6.5.0-28-generic #29~22.04.1-Ubuntu