Modifying any of the cpl-3.6 examples with: $cpl->set_format("json"); Would result in the error: PHP Notice: Undefined variable: format in cpl-3.6/php/cpl.inc.php on line 39 The following patch seems to address the error: Code: --- cpl-3.6/php/cpl.inc.php 2012-01-26 12:47:42.000000000 -0600 +++ cpl-3.6-mod/php/cpl.inc.php 2014-09-12 18:33:06.875875007 -0500 @@ -36,7 +36,7 @@ return; } if ($this->format != "simplexml") { - $args['output'] = $format; + $args['output'] = $this->format; } $query = "https://manage2.cpanel.net/" . $function . "?" . http_build_query($args); curl_setopt($this->curl, CURLOPT_URL, $query);
Hello I have moved this thread to the "Workarounds" forum. Please ensure you open a bug report so we can reproduce the issue and open an internal case if necessary: Submit A Bug Report Thank you.