Skip to content

Commit 0af2c21

Browse files
committed
Don't unset the inflate resource on close as it might still be needed
1 parent 0e591b8 commit 0af2c21

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Response/CurlResponse.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ public function __destruct()
225225
*/
226226
private function close(): void
227227
{
228-
$this->inflate = null;
229228
unset($this->multi->openHandles[$this->id], $this->multi->handlesActivity[$this->id]);
230229
curl_setopt($this->handle, \CURLOPT_PRIVATE, '_0');
231230

Response/NativeResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private function open(): void
193193
private function close(): void
194194
{
195195
unset($this->multi->openHandles[$this->id], $this->multi->handlesActivity[$this->id]);
196-
$this->handle = $this->buffer = $this->inflate = $this->onProgress = null;
196+
$this->handle = $this->buffer = $this->onProgress = null;
197197
}
198198

199199
/**

0 commit comments

Comments
 (0)