Show system variables on error

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-03-06 14:31:07 +01:00
parent b71371a913
commit 3d24d08e41

View File

@ -4797,6 +4797,13 @@ class Util
if ($response === false) {
/* Debug code! */
echo curl_error($curl_handle);
echo "\n";
echo 'cafile=' . ini_get('curl.cafile');
echo "\n";
echo 'cainfo=' . ini_get('curl.cainfo');
echo "\n";
echo 'capath=' . ini_get('curl.capath');
echo "\n";
return null;
}
$http_status = curl_getinfo($curl_handle, CURLINFO_HTTP_CODE);