[php-src] Issue #14102: curl segfault

From: Date: Wed, 01 May 2024 13:32:11 +0000
Subject: [php-src] Issue #14102: curl segfault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246846@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14102 Author: ro0NL ### Description The following code: ```php <?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 https://github.com/symfony/symfony/issues/54796 Last trace is https://github.com/symfony/symfony/blob/c168c2c137acee438463fcde2df1685cf74ff623/src/Symfony/Component/HttpClient/Response/CurlResponse.php#L288 ### PHP Version PHP 8.1.28 ### Operating System Linux f6e21ecae0c6 6.5.0-28-generic #29~22.04.1-Ubuntu

« previous php.bugs (#246846) next »