Skip to content
Permalink
Browse files

Close curl

  • Loading branch information
ruudboon authored and niden committed Jan 10, 2020
1 parent 75f8d67 commit a4745359a67fecc0a5719793f1c28eec763a5181
Showing with 4 additions and 0 deletions.
  1. +4 −0 .ci/cleanup-packages.php
@@ -42,8 +42,10 @@ public function query($url)

if (false === ($retval = curl_exec($ch))) {
print_r(curl_error($ch));
curl_close($ch);
} else {
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
switch ($httpCode) {
case "200":
return json_decode($retval);
@@ -89,8 +91,10 @@ public function deletePackage($packageUrl, $age)

if (false === ($retval = curl_exec($ch))) {
print_r(curl_error($ch));
curl_close($ch);
} else {
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
switch ($httpCode) {
case "200":
echo "done" . PHP_EOL;

0 comments on commit a474535

Please sign in to comment.
You can’t perform that action at this time.