From: Antony Dovgal Date: Fri, 15 Sep 2006 15:33:30 +0000 (+0000) Subject: MFB: still output an error, even if there is no curl_easy_strerror() X-Git-Tag: RELEASE_1_0_0RC1~1659 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8e416139d890b4d8712c3d63bfafd8263848538;p=php MFB: still output an error, even if there is no curl_easy_strerror() --- 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++; }