curl_share_errno

(PHP 7 >= 7.1.0)

curl_share_errnoReturn the last share curl error number

Description

curl_share_errno ( CurlShareHandle $share_handle ) : int

Return an integer containing the last share curl error number.

Parameters

share_handle

A cURL share handle returned by curl_share_init().

Return Values

Returns an integer containing the last share curl error number, or false on failure.

Changelog

Version Description
8.0.0 The function no longer returns false on failure.
8.0.0 share_handle expects a CurlShareHandle instance now; previously, a resource was expected.

See Also

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.curl-share-errno.php