X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FClient.php;h=214d9703bdbe781841efdfcb6ab01d70c4d9d5f7;hb=9337670bd021202018213a156c0083dd72902571;hp=4c784d5be96507b13c6f0057dd74c4be988d135c;hpb=2d54bc797b2cd53055ab103065a4cd7d6c8d6580;p=plcapi.git diff --git a/src/Client.php b/src/Client.php index 4c784d5..214d970 100644 --- a/src/Client.php +++ b/src/Client.php @@ -722,10 +722,10 @@ class Client } // results into variable - curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); - if ($this->debug) { - curl_setopt($curl, CURLOPT_VERBOSE, 1); + if ($this->debug > 1) { + curl_setopt($curl, CURLOPT_VERBOSE, true); /// @todo allow callers to redirect curlopt_stderr to some stream which can be buffered } curl_setopt($curl, CURLOPT_USERAGENT, $this->user_agent);