curl_close
brefphp/bref
Supported Versions: PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
Close a cURL session
curl_close
(
CurlHandle $handle
):
void
$ch
=
curl_init
(
$url
);
curl_setopt_array
(
$ch
,
$options
);
curl_exec
(
$ch
);
curl_close
(
$ch
);
fclose
(
$fp
);
}
runtime/layers/console/breftoolbox.php
$ch
=
curl_init
(
$url
);
curl_setopt_array
(
$ch
,
$options
);
curl_exec
(
$ch
);
curl_close
(
$ch
);
fclose
(
$fp
);
}
runtime/layers/fpm/breftoolbox.php
$ch
=
curl_init
(
$url
);
curl_setopt_array
(
$ch
,
$options
);
curl_exec
(
$ch
);
curl_close
(
$ch
);
fclose
(
$fp
);
}
runtime/layers/function/breftoolbox.php
private function
closeCurlHandleNext
():
void
{
if (
$this
->
curlHandleNext
!==
null
) {
curl_close
(
$this
->
curlHandleNext
);
$this
->
curlHandleNext
=
null
;
}
}
src/Runtime/LambdaRuntime.php
private function
closeCurlHandleResult
():
void
{
if (
$this
->
curlHandleResult
!==
null
) {
curl_close
(
$this
->
curlHandleResult
);
$this
->
curlHandleResult
=
null
;
}
}
src/Runtime/LambdaRuntime.php