cvs: php4 /ext/curl curl.c
| From: | Sterling Hughes | Date: | Sat, 28 Apr 2001 21:37:45 +0000 |
| Subject: | cvs: php4 /ext/curl curl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5352@lists.php.net to get a copy of this message | ||
sterling Sat Apr 28 14:37:45 2001 EDT
Modified files:
/php4/ext/curl curl.c
Log:
fix bug #10541
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.42 php4/ext/curl/curl.c:1.43
--- php4/ext/curl/curl.c:1.42 Tue Apr 24 15:10:41 2001
+++ php4/ext/curl/curl.c Sat Apr 28 14:37:45 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: curl.c,v 1.42 2001/04/24 22:10:41 sterling Exp $ */
+/* $Id: curl.c,v 1.43 2001/04/28 21:37:45 sterling Exp $ */
#include "php.h"
@@ -599,14 +599,15 @@
if (ret != CURLE_OK) {
SAVE_CURL_ERROR(curl_handle, ret);
- RETURN_FALSE;
+ RETVAL_FALSE;
} else {
- RETURN_TRUE;
+ RETVAL_TRUE;
}
if (fp && is_temp_file)
fclose(fp);
+ return;
}
fseek(fp, 0, SEEK_SET);
@@ -626,6 +627,9 @@
struct stat stat_sb;
if (fstat(fileno(fp), &stat_sb)) {
+ if (is_temp_file) {
+ fclose(fp);
+ }
RETURN_FALSE;
}