X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FClient.php;h=fe4eb5d2183c7162ebe3f503500bedbb0cd0afa2;hb=c27693ac87a6a64a63d410f3e0cd9aa00cf7841a;hp=2f6444af33eb93585edd45de0fde9fde6f66f1c5;hpb=b6681659a7cabd3599f6a7040aa06fa75e4be052;p=plcapi.git diff --git a/src/Client.php b/src/Client.php index 2f6444a..fe4eb5d 100644 --- a/src/Client.php +++ b/src/Client.php @@ -168,7 +168,7 @@ class Client // if ZLIB is enabled, let the client by default accept compressed responses if (function_exists('gzinflate') || ( - function_exists('curl_init') && (($info = curl_version()) && + function_exists('curl_version') && (($info = curl_version()) && ((is_string($info) && strpos($info, 'zlib') !== null) || isset($info['libz_version']))) ) ) { @@ -463,6 +463,7 @@ class Client * chosen during creation of the object will be used. * * @return Response|Response[] Note that the client will always return a Response object, even if the call fails + * @todo allow throwing exceptions instead of returning responses in case of failed calls and/or Fault responses */ public function send($req, $timeout = 0, $method = '') {