From 91ff353c8e1ffc89977897dc25004dc3226cd7cf Mon Sep 17 00:00:00 2001 From: Atsushi Matsuo Date: Wed, 3 Dec 2025 05:09:13 +0900 Subject: [PATCH] Remove deprecated curl_close() function (#132) --- src/Supporting/CommunicationProvider.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Supporting/CommunicationProvider.php b/src/Supporting/CommunicationProvider.php index 442a85d..5c5124f 100644 --- a/src/Supporting/CommunicationProvider.php +++ b/src/Supporting/CommunicationProvider.php @@ -639,7 +639,6 @@ public function callRestAPI(array $params, if ($this->curlErrorNumber) { $this->curlError = curl_error($ch); } - curl_close($ch); $this->method = $method; $this->url = $url; @@ -696,10 +695,8 @@ public function accessToContainer(string $url): string curl_exec($ch); if (curl_errno($ch) !== 0) { $errMsg = curl_error($ch); - curl_close($ch); throw new Exception("Error in creating cookie file. {$errMsg}"); } - curl_close($ch); // Visit the container URL again. $ch = $this->_createCurlHandle($url); @@ -707,10 +704,8 @@ public function accessToContainer(string $url): string $output = curl_exec($ch); if (curl_errno($ch) !== 0) { $errMsg = curl_error($ch); - curl_close($ch); throw new Exception("Error in downloading content of file. {$errMsg}"); } - curl_close($ch); return base64_encode($output); // Process the data as needed. }