curl_share_init

Supported Versions: PHP 5 >= 5.5.0, PHP 7, PHP 8
Initialize a cURL share handle
<?php curl_share_init(): CurlShareHandle
<?php         }



        if (function_exists('curl_share_init')) {

            $this->shareHandle = $sh = curl_share_init();

            curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE);

            curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS);

            curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION);