Authored by ziy

fix Exception to \Exception

... ... @@ -147,7 +147,7 @@ class CurlMulti extends CurlAbstract
private function addHandle($curl_handle, $callback, $data, $wait_for_connect = false)
{
if (get_resource_type($curl_handle) !== 'curl' || !is_callable($callback)) {
throw new Exception("Invalid curl handle or callback");
throw new \Exception("Invalid curl handle or callback");
}
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, TRUE);
if (!empty($this->headerData)) {
... ...