Fix curl_multi_getcontent() parameter name

While the function name starts with curl_multi_*, the function
actually accepts a CurlHandle. As such, it should also use just
$handle as the parameter name.

Closes GH-6435.
This commit is contained in:
Nikita Popov 2020-11-18 16:43:45 +01:00
parent bbc0dd402a
commit 06c4a501fd
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ function curl_multi_errno(CurlMultiHandle $multi_handle): int {}
/** @param int $still_running */ /** @param int $still_running */
function curl_multi_exec(CurlMultiHandle $multi_handle, &$still_running): int {} function curl_multi_exec(CurlMultiHandle $multi_handle, &$still_running): int {}
function curl_multi_getcontent(CurlHandle $multi_handle): ?string {} function curl_multi_getcontent(CurlHandle $handle): ?string {}
/** @param int $queued_messages */ /** @param int $queued_messages */
function curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false {} function curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false {}

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* This is a generated file, edit the .stub.php file instead.
* Stub hash: afeae538b49eb43a661e5b491da79c17d10c6bfe */ * Stub hash: f1d616c644ad366405816cde0384f6f391773ebf */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0)
ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0)
@ -74,7 +74,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_exec, 0, 2, IS_LONG,
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_getcontent, 0, 1, IS_STRING, 1) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_getcontent, 0, 1, IS_STRING, 1)
ZEND_ARG_OBJ_INFO(0, multi_handle, CurlHandle, 0) ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_multi_info_read, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_multi_info_read, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)