Skip to content

PHP 8.5 Deprecation: curl_close() #72

@Soean

Description

@Soean

When I run DeepL with PHP 8.5, I get a deprecation notice.

Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0

See https://www.php.net/manual/en/function.curl-close.php

\curl_close($this->curlHandle);

We should add a check:

if (PHP_VERSION_ID < 80000) {
   \curl_close($this->curlHandle);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions