\FACTFinder\UtilCurlMultiHandle

Struct-like class that represents all data associated with one curl multi handle.

Summary

Methods
Properties
Constants
No public methods found
$handles
$options
$messageQueue
$performReturned
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$handles

$handles : array<mixed,integer>

Type

array<mixed,integer> — List-like array of easy handles that have been added to this multi handle. Note that we don't add CurlHandle objects but only integers, which are the $ch the CurlStub hands out in place of resources.

$options

$options : array<mixed,mixed>

Type

array<mixed,mixed> — Map-like array of options that are set on the multi handle itself. Option-identifying integers as keys, mixed-type option values as values. This feature is not yet supported, since PHP's cURL implementation did not add curl_multi_setopt until PHP 5.5.0.

$messageQueue

$messageQueue : array<mixed,array>

Type

array<mixed,array> — Queue-like array of messages to be returned by multi_info_read.

$performReturned

$performReturned : boolean

Type

boolean — This is only used to mimick cURL's behavior prior to version 7.20.0. In these versions, cURL could return CURLM_CALL_MULTI_PERFORM from a multi_exec call, indicating that multi_exec should be called again right away. For these cURL versions, the stub simply returns that code once and then signals CURLM_OK. This flag is used to track which state we are in.