Skip to content

Commit 91ff353

Browse files
committed
Remove deprecated curl_close() function (msyk#132)
1 parent 308c5b5 commit 91ff353

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/Supporting/CommunicationProvider.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ public function callRestAPI(array $params,
639639
if ($this->curlErrorNumber) {
640640
$this->curlError = curl_error($ch);
641641
}
642-
curl_close($ch);
643642

644643
$this->method = $method;
645644
$this->url = $url;
@@ -696,21 +695,17 @@ public function accessToContainer(string $url): string
696695
curl_exec($ch);
697696
if (curl_errno($ch) !== 0) {
698697
$errMsg = curl_error($ch);
699-
curl_close($ch);
700698
throw new Exception("Error in creating cookie file. {$errMsg}");
701699
}
702-
curl_close($ch);
703700

704701
// Visit the container URL again.
705702
$ch = $this->_createCurlHandle($url);
706703
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile);
707704
$output = curl_exec($ch);
708705
if (curl_errno($ch) !== 0) {
709706
$errMsg = curl_error($ch);
710-
curl_close($ch);
711707
throw new Exception("Error in downloading content of file. {$errMsg}");
712708
}
713-
curl_close($ch);
714709

715710
return base64_encode($output); // Process the data as needed.
716711
}

0 commit comments

Comments
 (0)