Skip to content

Commit 06c4a50

Browse files
committed
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.
1 parent bbc0dd4 commit 06c4a50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/curl/curl.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function curl_multi_errno(CurlMultiHandle $multi_handle): int {}
4848
/** @param int $still_running */
4949
function curl_multi_exec(CurlMultiHandle $multi_handle, &$still_running): int {}
5050

51-
function curl_multi_getcontent(CurlHandle $multi_handle): ?string {}
51+
function curl_multi_getcontent(CurlHandle $handle): ?string {}
5252

5353
/** @param int $queued_messages */
5454
function curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false {}

ext/curl/curl_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: afeae538b49eb43a661e5b491da79c17d10c6bfe */
2+
* Stub hash: f1d616c644ad366405816cde0384f6f391773ebf */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0)
55
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,
7474
ZEND_END_ARG_INFO()
7575

7676
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_getcontent, 0, 1, IS_STRING, 1)
77-
ZEND_ARG_OBJ_INFO(0, multi_handle, CurlHandle, 0)
77+
ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0)
7878
ZEND_END_ARG_INFO()
7979

8080
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_multi_info_read, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)

0 commit comments

Comments
 (0)