Skip to content

[RFC] Deprecate curl_share_close() #19452

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 1 commit into from
Aug 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ext/curl/curl.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -3811,6 +3811,7 @@ function curl_setopt_array(CurlHandle $handle, array $options): bool {}

function curl_setopt(CurlHandle $handle, int $option, mixed $value): bool {}

#[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.0")]
function curl_share_close(CurlShareHandle $share_handle): void {}

function curl_share_errno(CurlShareHandle $share_handle): int {}
Expand Down
10 changes: 8 additions & 2 deletions ext/curl/curl_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion ext/curl/tests/curl_share_close_basic001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ curl_share_close($sh);
var_dump($sh);

?>
--EXPECT--
--EXPECTF--
object(CurlShareHandle)#1 (0) {
}

Deprecated: Function curl_share_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in %s on line %d
object(CurlShareHandle)#1 (0) {
}