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

index dd7fcd94a9189eee347eedf7a3c25177b45513f7..c021d6eb0c3e8ddd66394a80de474093627401f9 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++;
                        }