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

Skip to content

Commit 9b3d934

Browse files
bug #54860 [HttpClient] Revert fixing curl default options (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpClient] Revert fixing curl default options | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Reverts #54830 because php/php-src#14165 got merged and fixes the unintentional BC break. (CI still red but should go to green when new nightlies are built) Commits ------- 365f7b4 [HttpClient] Revert fixing curl default options
2 parents de16e21 + 365f7b4 commit 9b3d934

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/HttpClient/Response/CurlResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ public function __construct(CurlClientState $multi, $ch, ?array $options = null,
174174
curl_multi_remove_handle($multi->handle, $ch);
175175
curl_setopt_array($ch, [
176176
\CURLOPT_NOPROGRESS => true,
177+
\CURLOPT_PROGRESSFUNCTION => null,
178+
\CURLOPT_HEADERFUNCTION => null,
179+
\CURLOPT_WRITEFUNCTION => null,
180+
\CURLOPT_READFUNCTION => null,
177181
\CURLOPT_INFILE => null,
178182
]);
179183

0 commit comments

Comments
 (0)