jeedom / core

Software for home automation
https://www.jeedom.com
GNU General Public License v2.0
383 stars 312 forks source link

fix: manage php8 migration for curl functions #2702

Closed pifou25 closed 1 week ago

pifou25 commented 2 weeks ago

Description

curl_init, starting from php8: On success, this function returns a CurlHandle instance now; previously, a resource was returned.

any other curl_* function (e.g. curl_setopt ) starting from php8: handle expects a CurlHandle instance now; previously, a resource was expected.

conclusion : nothing to change, except for ìs_resource()andcurl_close()`

Suggested changelog entry

Related issues/external references

Fixes #2676

Types of changes

PR checklist