8000 [HttpClient] fix closing debug stream prematurely by nicolas-grekas · Pull Request #32011 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpClient] fix closing debug stream prematurely #32011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[HttpClient] fix closing debug stream prematurely
  • Loading branch information
nicolas-grekas committed Jun 12, 2019
commit 21857a1edb5a69f16fb72cf2a90af7ef86606142
4 changes: 2 additions & 2 deletions src/Symfony/Component/HttpClient/Response/CurlResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public function getInfo(string $type = null)
rewind($this->debugBuffer);
$info['debug'] = stream_get_contents($this->debugBuffer);
curl_setopt($this->handle, CURLOPT_VERBOSE, false);
fclose($this->debugBuffer);
$this->debugBuffer = null;
rewind($this->debugBuffer);
ftruncate($this->debugBuffer, 0);
$this->finalInfo = $info;
}
}
Expand Down
0