cvs: php4 /ext/curl curl.c
| From: | Jani Taskinen | Date: | Sun, 22 Oct 2000 17:29:33 +0000 |
| Subject: | cvs: php4 /ext/curl curl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2222@lists.php.net to get a copy of this message | ||
sniper Sun Oct 22 10:29:33 2000 EDT
Modified files:
/php4/ext/curl curl.c
Log:
Makes curl extension compile again plus some typo fixes.
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.18 php4/ext/curl/curl.c:1.19
--- php4/ext/curl/curl.c:1.18 Fri Oct 20 11:24:58 2000
+++ php4/ext/curl/curl.c Sun Oct 22 10:29:33 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: curl.c,v 1.18 2000/10/20 18:24:58 andrei Exp $ */
+/* $Id: curl.c,v 1.19 2000/10/22 17:29:33 sniper Exp $ */
#include "php.h"
@@ -55,7 +55,7 @@
static int le_curl;
-static void _php_curl_close(php_curl *);
+static void _php_curl_close(zend_rsrc_list_entry *rsrc);
#define SAVE_CURL_ERROR(__handle, __err) \
__handle->cerrno = (int)__err;
@@ -266,6 +266,7 @@
PHP_MSHUTDOWN_FUNCTION(curl)
{
win32_cleanup();
+ return SUCCESS;
}
@@ -309,6 +310,7 @@
urlstr = estrndup(Z_STRVAL_PP(url), Z_STRLEN_PP(url));
curl_easy_setopt(curl_handle->cp, CURLOPT_URL, urlstr);
+ efree(urlstr);
}
curl_easy_setopt(curl_handle->cp, CURLOPT_NOPROGRESS, 1);
@@ -509,7 +511,8 @@
}
break;
- case CURLOPT_QUOTE: CURLOPT_POSTQUOTE:
+ case CURLOPT_QUOTE:
+ case CURLOPT_POSTQUOTE:
{
zval **current;