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 643fa65

Browse filesBrowse files
Merge branch '4.4' into 5.4
* 4.4: [HttpClient] fix destructing CurlResponse
2 parents e0b5ce1 + 2094f4b commit 643fa65
Copy full SHA for 643fa65

File tree

1 file changed

+3
-1
lines changed
Filter options

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
@@ -255,7 +255,9 @@ public function __destruct()
255255

256256
$this->doDestruct();
257257
} finally {
258-
curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
258+
if (\is_resource($this->handle) || $this->handle instanceof \CurlHandle) {
259+
curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
260+
}
259261
}
260262
}
261263

0 commit comments

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