From 648ac2c21b7b7d2a8fa652a31687feeff20864bd Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Sat, 9 Jun 2018 01:45:46 -0700 Subject: [PATCH] Reset response variables to match initial values --- src/Curl/Curl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 0b71c99..b8c17dd 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -351,8 +351,8 @@ class Curl // Transfer the header callback data and release the temporary store to avoid memory leak. $this->rawResponseHeaders = $this->headerCallbackData->rawResponseHeaders; $this->responseCookies = $this->headerCallbackData->responseCookies; - $this->headerCallbackData->rawResponseHeaders = null; - $this->headerCallbackData->responseCookies = null; + $this->headerCallbackData->rawResponseHeaders = ''; + $this->headerCallbackData->responseCookies = array(); // Include additional error code information in error message when possible. if ($this->curlError && function_exists('curl_strerror')) {