From fcf4f87919c1f76b69044e2ab233281b9d476ec6 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 15 Sep 2006 15:33:14 +0000 Subject: [PATCH] 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 dd7fcd94a9..c021d6eb0c 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