Fix: lowercase class name makes debugger break on HHVM
[plcapi.git] / src / Client.php
index 79948e8..4c784d5 100644 (file)
@@ -363,7 +363,7 @@ class Client
         }
 
         // where req is a Request
-        $req->debug = $this->debug;
+        $req->setDebug($this->debug);
 
         if ($method == 'https') {
             $r = $this->sendPayloadHTTPS(
@@ -726,6 +726,7 @@ class Client
 
         if ($this->debug) {
             curl_setopt($curl, CURLOPT_VERBOSE, 1);
+            /// @todo allow callers to redirect curlopt_stderr to some stream which can be buffered
         }
         curl_setopt($curl, CURLOPT_USERAGENT, $this->user_agent);
         // required for XMLRPC: post the data