Skip to content

curl: Prevent a CurlMultiHandle from holding onto a CurlHandle if add_handle fails #16302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

TimWolla
Copy link
Member

@TimWolla TimWolla commented Oct 8, 2024

As a user I expect curl_multi_add_handle to not have any effect if it returns an error and I specifically do not expect that it would be necessary to call curl_multi_remove_handle.

…d_handle` fails

As a user I expect `curl_multi_add_handle` to not have any effect if it returns
an error and I specifically do not expect that it would be necessary to call
`curl_multi_remove_handle`.
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@TimWolla TimWolla merged commit e49d732 into php:PHP-8.2 Oct 9, 2024
8 checks passed
TimWolla added a commit that referenced this pull request Oct 9, 2024
* PHP-8.2:
  curl: Prevent a CurlMultiHandle from holding onto a CurlHandle if `add_handle` fails (#16302)
TimWolla added a commit that referenced this pull request Oct 9, 2024
* PHP-8.3:
  curl: Prevent a CurlMultiHandle from holding onto a CurlHandle if `add_handle` fails (#16302)
TimWolla added a commit that referenced this pull request Oct 9, 2024
* PHP-8.4:
  curl: Prevent a CurlMultiHandle from holding onto a CurlHandle if `add_handle` fails (#16302)
@TimWolla TimWolla deleted the curl-multi-add-handle-lifecycle branch October 9, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants