We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e78e7b1 + 91512f9 commit 8d2212aCopy full SHA for 8d2212a
qiniu/http.php
@@ -182,7 +182,8 @@ function Qiniu_Client_ret($resp) // => ($data, $error)
182
if ($resp->ContentLength !== 0) {
183
$data = json_decode($resp->Body, true);
184
if ($data === null) {
185
- $err = new Qiniu_Error(0, json_last_error_msg());
+ $err_msg = function_exists('json_last_error_msg') ? json_last_error_msg() : "error with content:" . $resp->Body;
186
+ $err = new Qiniu_Error(0, $err_msg);
187
return array(null, $err);
188
}
189
0 commit comments