curl_share_setopt

Supported Versions: PHP 5 >= 5.5.0, PHP 7, PHP 8
Set an option for a cURL share handle
<?php curl_share_setopt(CurlShareHandle $share_handle, int $option, mixed $value): bool
<?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);

        }
<?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);

        }
<?php             $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);

        }



        $this->authHelper = new AuthHelper($io, $config);