From b8e416139d890b4d8712c3d63bfafd8263848538 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 15 Sep 2006 15:33:30 +0000 Subject: [PATCH] MFB: still output an error, even if there is no curl_easy_strerror() --- ext/curl/streams.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/curl/streams.c b/ext/curl/streams.c index b1d19e2e07..677b4161f0 100644 --- a/ext/curl/streams.c +++ b/ext/curl/streams.c @@ -447,6 +447,8 @@ php_stream *php_curl_stream_opener(php_stream_wrapper *wrapper, char *filename, } else { #if HAVE_CURL_EASY_STRERROR php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", curl_easy_strerror(msg->data.result)); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, "There was an error mcode=%d", msg->data.result); #endif msg_found++; } -- 2.50.1