]> granicus.if.org Git - php/commitdiff
MFB: still output an error, even if there is no curl_easy_strerror()
authorAntony Dovgal <tony2001@php.net>
Fri, 15 Sep 2006 15:33:30 +0000 (15:33 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 15 Sep 2006 15:33:30 +0000 (15:33 +0000)
ext/curl/streams.c

index b1d19e2e07107f6298cbb4bb4b12ece7db096b63..677b4161f0e099257a29faf71b34ffd1875478c2 100644 (file)
@@ -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++;
                        }