Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2094f4b

Browse filesBrowse files
[HttpClient] fix destructing CurlResponse
1 parent 12b63b3 commit 2094f4b
Copy full SHA for 2094f4b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/CurlResponse.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ public function __destruct()
233233

234234
$this->doDestruct();
235235
} finally {
236-
curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
236+
if (\is_resource($this->handle) || $this->handle instanceof \CurlHandle) {
237+
curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
238+
}
237239
}
238240
}
239241

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.