cvs: php-src(PHP_5_2) /ext/curl streams.c
| From: | Antony Dovgal | Date: | Fri, 15 Sep 2006 15:33:14 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/curl streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-40533@lists.php.net to get a copy of this message | ||
tony2001 Fri Sep 15 15:33:14 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/curl streams.c
Log:
still output an error, even if there is no curl_easy_strerror()
http://cvs.php.net/viewvc.cgi/php-src/ext/curl/streams.c?r1=1.14.2.2.2.7&r2=1.14.2.2.2.8&diff_format=u
Index: php-src/ext/curl/streams.c
diff -u php-src/ext/curl/streams.c:1.14.2.2.2.7 php-src/ext/curl/streams.c:1.14.2.2.2.8
--- php-src/ext/curl/streams.c:1.14.2.2.2.7 Fri Sep 15 13:44:50 2006
+++ php-src/ext/curl/streams.c Fri Sep 15 15:33:14 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.14.2.2.2.7 2006/09/15 13:44:50 tony2001 Exp $ */
+/* $Id: streams.c,v 1.14.2.2.2.8 2006/09/15 15:33:14 tony2001 Exp $ */
/* This file implements cURL based wrappers.
* NOTE: If you are implementing your own streams that are intended to
@@ -447,6 +447,8 @@
} 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++;
}