File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ public function exec($ch = null)
494494 $ this ->headerCallbackData ->stopRequest = false ;
495495
496496 // Include additional error code information in error message when possible.
497- if ($ this ->curlError && function_exists ( ' curl_strerror ' ) ) {
497+ if ($ this ->curlError ) {
498498 $ this ->curlErrorMessage =
499499 curl_strerror ($ this ->curlErrorCode ) . (
500500 empty ($ this ->curlErrorMessage ) ? '' : ': ' . $ this ->curlErrorMessage
@@ -1567,7 +1567,7 @@ public function diagnose($return = false)
15671567 */
15681568 public function reset ()
15691569 {
1570- if (function_exists ( ' curl_reset ' ) && ( is_resource ($ this ->curl ) || $ this ->curl instanceof \CurlHandle) ) {
1570+ if (is_resource ($ this ->curl ) || $ this ->curl instanceof \CurlHandle) {
15711571 curl_reset ($ this ->curl );
15721572 } else {
15731573 $ this ->curl = curl_init ();
You can’t perform that action at this time.
0 commit comments