Skip to content

Remove curl_close calls - #79

Open
michalfelski wants to merge 2 commits into
FusionAuth:developfrom
michalfelski:issue-78
Open

Remove curl_close calls#79
michalfelski wants to merge 2 commits into
FusionAuth:developfrom
michalfelski:issue-78

Conversation

@michalfelski

Copy link
Copy Markdown

This PR removes explicit curl_close($curl) calls from RESTClient.php.

In PHP 8.0 and later, cURL handles are represented by CurlHandle objects instead of resources. As a result, curl_close() no longer has any effect. Starting with PHP 8.5, calling curl_close() also triggers a deprecation warning.

Before PHP 8.0, curl_close() was still required to explicitly close cURL resources. Since removing these calls drops compatibility with PHP versions older than 8.0, the minimum PHP requirement for this package has been updated to PHP 8.0.

michalfelski and others added 2 commits June 15, 2026 10:36
Add a PHP >=8.0 requirement to composer.json. Remove explicit curl_close($curl) calls from RESTClient.php as it has no efect and produces warning
Copilot AI lite review requested due to automatic review settings August 22, 2026 07:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes obsolete curl_close() calls and raises the minimum PHP version to 8.0.

Changes:

  • Removed explicit cURL handle cleanup.
  • Added PHP >=8.0 Composer requirement.
  • Regenerated composer.lock is still required.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Summary
src/FusionAuth/RESTClient.php Removes obsolete cURL cleanup calls.
composer.json Declares PHP 8.0 minimum; composer.lock must be regenerated to match.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread composer.json
}
],
"require": {
"php": ">=8.0",
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