php8.5
Home/ Manual/ reference / curl/ The CurlSharePersistentHandle class

The CurlSharePersistentHandle class

Represents a persistent cURL "share" handle, created by curl_share_init_persistent. Unlike CurlShareHandle (created with curl_share_init), this handle persists across requests. Use curl_share_setopt to configure what data is shared.

Intro

Represents a persistent cURL "share" handle, created by curl_share_init_persistent(). Unlike CurlShareHandle (created with curl_share_init()), this handle persists across requests. Use curl_share_setopt() to configure what data is shared.

Class synopsis

final CurlSharePersistentHandle { }

Properties

options

The CURL_LOCK_DATA_* caches shared between requests using this handle.

Changelog

VersionDescription
8.5.0The class was added.

Source: reference/curl/curlsharepersistenthandle.xml · from the official PHP manual (php/doc-en)