From 09a129446330cd2074825fc09db6718e8b438bbf Mon Sep 17 00:00:00 2001 From: "cherry.chan" Date: Fri, 27 Sep 2024 20:48:12 +0800 Subject: [PATCH] fix object of class CurlHadnle could not be converted to string issue --- Aliyun/Log/requestcore.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aliyun/Log/requestcore.class.php b/Aliyun/Log/requestcore.class.php index 43e5e6b..3112bb7 100644 --- a/Aliyun/Log/requestcore.class.php +++ b/Aliyun/Log/requestcore.class.php @@ -832,7 +832,7 @@ public function send_request($parse = false) if ($this->response === false) { - throw new RequestCore_Exception('cURL resource: ' . (string) $curl_handle . '; cURL error: ' . curl_error($curl_handle) . ' (' . curl_errno($curl_handle) . ')'); + throw new RequestCore_Exception('cURL error: ' . curl_error($curl_handle) . ' (' . curl_errno($curl_handle) . ')'); } $parsed_response = $this->process_response($curl_handle, $this->response);