Skip to content

fix: curl_close() is deprecated#198

Merged
taylorotwell merged 1 commit intolaravel:2.0from
mortenhauberg:fix/curl-deprecation-warning
Jan 20, 2026
Merged

fix: curl_close() is deprecated#198
taylorotwell merged 1 commit intolaravel:2.0from
mortenhauberg:fix/curl-deprecation-warning

Conversation

@mortenhauberg
Copy link
Contributor

PHP 8.5 curl_close() deprecation

curl_close() is deprecated as of PHP 8.5 and has effectively been a no-op since PHP 8.0 due to the resource to object conversion.

The current implementation is triggering deprecation warnings.

References

### PHP 8.5 `curl_close()` deprecation

`curl_close()` is deprecated as of **PHP 8.5** and has effectively been a no-op since **PHP 8.0** due to the resource to object conversion.

**References**

- [RFC](https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_no-op_functions_from_the_resource_to_object_conversion)

- [Commit](php/php-src@9b13bb1#diff-8e0f968fefdfb8e72b009bf61ac8660825f790f451c190b94ac6cdbb8d84a996)

- `curl_close()` marked as deprecated in the cURL stubs
  https://github.com/php/php-src/blob/b17b699c69f5c9e7ddf65bb35293e351f3f182b0/ext/curl/curl.stub.php#L3743-L3744
@taylorotwell taylorotwell merged commit 3e67143 into laravel:2.0 Jan 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants