From 2b4e1ed67cebc02a42b6d2aba4eeac76d2274d08 Mon Sep 17 00:00:00 2001 From: wsd-msp Date: Tue, 13 Nov 2018 11:11:31 +0100 Subject: [PATCH] Update Client.php Clear $this->ch on shutdown, so it's empty for subsequently create(), which would otherwise try to close an already closed curl handle. --- Economic/API/Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Economic/API/Client.php b/Economic/API/Client.php index abd7f3e..acedcfc 100644 --- a/Economic/API/Client.php +++ b/Economic/API/Client.php @@ -59,6 +59,7 @@ public function shutdown() { if (!empty($this->ch)) { curl_close($this->ch); + $this->ch = null; } }