Deprecation warnings
-
I get deprecation warnings like this on my server running PHP 8.5:
Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in /var/www/myserver/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/Common/HTTP/Request.php on line 230Suggested solution: remove any call of
curl_close(). It it is not needed. And if you still want to support older PHP versions, only call it when the reported PHP version is older than 8.0:/**
* @return Response
*/
protected function requestSingle()
{
...
if (PHP_VERSION_ID < 80000) {
curl_close($ch);
}
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.