up
This commit is contained in:
@@ -465,7 +465,10 @@ class WhatsAppService
|
||||
$response = curl_exec($ch);
|
||||
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
$error = curl_error($ch);
|
||||
curl_close($ch);
|
||||
// curl_close is deprecated in PHP 8.5+ (has no effect). Avoid calling it on newer versions.
|
||||
if (version_compare(PHP_VERSION, '8.5.0', '<')) {
|
||||
curl_close($ch);
|
||||
}
|
||||
|
||||
if ($error) {
|
||||
error_log("cURL Error: " . $error);
|
||||
|
||||
Reference in New Issue
Block a user