Skip to content

Commit 648ac2c

Browse files
committed
Reset response variables to match initial values
1 parent 703d0ac commit 648ac2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Curl/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ public function exec($ch = null)
351351
// Transfer the header callback data and release the temporary store to avoid memory leak.
352352
$this->rawResponseHeaders = $this->headerCallbackData->rawResponseHeaders;
353353
$this->responseCookies = $this->headerCallbackData->responseCookies;
354-
$this->headerCallbackData->rawResponseHeaders = null;
355-
$this->headerCallbackData->responseCookies = null;
354+
$this->headerCallbackData->rawResponseHeaders = '';
355+
$this->headerCallbackData->responseCookies = array();
356356

357357
// Include additional error code information in error message when possible.
358358
if ($this->curlError && function_exists('curl_strerror')) {

0 commit comments

Comments
 (0)