curl_multi_info_read

FunctionParams and return types changed in PHP 8.0

Get information about the current transfers.

PHP 5
PHP 7
PHP 8.0
Improved
PHP 8.1
PHP 8.2
PHP 8.3
PHP 8.4
PHP 8.5

curl_multi_info_read Function synopsis

curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false

Parameters

$multi_handle

TypeCurlMultiHandle

$queued_messages

Passed by reference, OptionalDefault valuenull

Number of messages that are still in the queue

Note that the parameter $queued_messages is passed by reference, and contains additional/updated context data that may be useful.

Return value

Typearray|false

On success, returns an associative array for the message, false on failure.

Changes to the curl_multi_info_read Function

PHP 8.0

  • Return type added: array|false
  • Parameter name of parameter #1 changed: $mh to $multi_handle
  • Parameter type added for parameter #1 ($multi_handle): CurlMultiHandle
  • Parameter name of parameter #2 changed: $msgs_in_queue to $queued_messages
  • Parameter default value added for position #2 ($queued_messages): null
- curl_multi_info_read($mh, &$msgs_in_queue)
+ curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false

curl_multi_info_read Function Availability

PHP VersionAvailability
PHP 8.5Future Release Yes
PHP 8.4Upcoming Release Yes
PHP 8.3Supported (Latest) Yes
PHP 8.2Supported Yes
PHP 8.1Security-Fixes Only Yes
PHP 8.0Unsupported Yes
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported Yes
PHP 5.4Unsupported Yes
PHP 5.3Unsupported Yes