From 7ef3e414e262ccd8d28c30784ef3a92878eb3dbf Mon Sep 17 00:00:00 2001 From: foobar Date: Sun, 22 Oct 2000 17:29:33 +0000 Subject: [PATCH] Makes curl extension compile again plus some typo fixes. --- ext/curl/curl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/curl/curl.c b/ext/curl/curl.c index 4b7c6bb336..ac05c41b5b 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -55,7 +55,7 @@ php_curl_globals curl_globals; 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_MINIT_FUNCTION(curl) PHP_MSHUTDOWN_FUNCTION(curl) { win32_cleanup(); + return SUCCESS; } @@ -309,6 +310,7 @@ PHP_FUNCTION(curl_init) 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 @@ PHP_FUNCTION(curl_setopt) } break; - case CURLOPT_QUOTE: CURLOPT_POSTQUOTE: + case CURLOPT_QUOTE: + case CURLOPT_POSTQUOTE: { zval **current; -- 2.40.0