bug #31832 [HttpClient] fix unregistering the debug buffer when using curl (nicolas-grekas)
This PR was merged into the 4.3 branch.
Discussion
----------
[HttpClient] fix unregistering the debug buffer when using curl
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #31803
| License | MIT
| Doc PR | -
Commits
-------
4fce813ed0
[HttpClient] fix unregistering the debug buffer when using curl
This commit is contained in:
commit
f6a6fb6834
@ -167,6 +167,7 @@ final class CurlResponse implements ResponseInterface
|
|||||||
if (!\in_array(curl_getinfo($this->handle, CURLINFO_PRIVATE), ['headers', 'content'], true)) {
|
if (!\in_array(curl_getinfo($this->handle, CURLINFO_PRIVATE), ['headers', 'content'], true)) {
|
||||||
rewind($this->debugBuffer);
|
rewind($this->debugBuffer);
|
||||||
$info['debug'] = stream_get_contents($this->debugBuffer);
|
$info['debug'] = stream_get_contents($this->debugBuffer);
|
||||||
|
curl_setopt($this->handle, CURLOPT_VERBOSE, false);
|
||||||
fclose($this->debugBuffer);
|
fclose($this->debugBuffer);
|
||||||
$this->debugBuffer = null;
|
$this->debugBuffer = null;
|
||||||
$this->finalInfo = $info;
|
$this->finalInfo = $info;
|
||||||
|
Reference in New Issue
Block a user