cvs: php4 /ext/curl curl.c
| From: | Sterling Hughes | Date: | Wed, 03 Apr 2002 23:59:36 +0000 |
| Subject: | cvs: php4 /ext/curl curl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10843@lists.php.net to get a copy of this message | ||
sterling Wed Apr 3 18:59:36 2002 EDT
Modified files:
/php4/ext/curl curl.c
Log:
fix bug #15150, thanks to daniel at haxx.se for the fix
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.110 php4/ext/curl/curl.c:1.111
--- php4/ext/curl/curl.c:1.110 Sun Mar 24 05:40:21 2002
+++ php4/ext/curl/curl.c Wed Apr 3 18:59:36 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: curl.c,v 1.110 2002/03/24 10:40:21 derick Exp $ */
+/* $Id: curl.c,v 1.111 2002/04/03 23:59:36 sterling Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -797,8 +797,8 @@
}
}
+ SAVE_CURL_ERROR(ch, error);
if (error != CURLE_OK) {
- SAVE_CURL_ERROR(ch, error);
RETURN_FALSE;
}
@@ -856,9 +856,9 @@
break;
}
}
-
+
+ SAVE_CURL_ERROR(ch, error);
if (error != CURLE_OK) {
- SAVE_CURL_ERROR(ch, error);
RETURN_FALSE;
} else {
RETURN_TRUE;
@@ -881,10 +881,10 @@
ZEND_FETCH_RESOURCE(ch, php_curl *, zid, -1, le_curl_name, le_curl);
error = curl_easy_perform(ch->cp);
+ SAVE_CURL_ERROR(ch, error);
if (error != CURLE_OK) {
if (ch->handlers->write->buf.len > 0)
smart_str_free(&ch->handlers->write->buf);
- SAVE_CURL_ERROR(ch, error);
RETURN_FALSE;
}